-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
copyright (c) 2012 Nicholas Penree <[email protected]> | ||
copyright (c) 2012-2017 Nicholas Penree <[email protected]> | ||
Original work: copyright (c) 2012 Jamplify | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Mongoose findOrCreate Plugin [![Build Status](https://secure.travis-ci.org/drudge/mongoose-findorcreate.png?branch=master)](https://travis-ci.org/drudge/mongoose-findorcreate) | ||
============================ | ||
|
||
Simple plugin for [Mongoose](https://github.com/LearnBoost/mongoose) which adds | ||
a findOrCreate method to models. This is useful for libraries like | ||
Simple plugin for [Mongoose](https://github.com/LearnBoost/mongoose) which adds | ||
a findOrCreate method to models. This is useful for libraries like | ||
[Passport](http://passportjs.org) which require it. | ||
|
||
## Installation | ||
|
@@ -31,7 +31,7 @@ Click.findOrCreate({ip: '127.0.0.1'}, function(err, click, created) { | |
}); | ||
``` | ||
|
||
You can also include properties that aren't used in the | ||
You can also include properties that aren't used in the | ||
find call, but will be added to the object if it is created. | ||
|
||
```javascript | ||
|
@@ -61,11 +61,11 @@ Click.findOrCreate({ip: '127.0.0.2'}).then(function (result) { | |
}) | ||
``` | ||
|
||
## License | ||
## License | ||
|
||
(The MIT License) | ||
|
||
Copyright (c) 2012 Nicholas Penree <[email protected]> | ||
Copyright (c) 2012-2017 Nicholas Penree <[email protected]> | ||
|
||
Based on [supergoose](https://github.com/jamplify/supergoose): Copyright (c) 2012 Jamplify | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "mongoose-findorcreate" | ||
, "description": "Mongoose plugin that adds findOrCreate" | ||
, "version": "1.0.1" | ||
, "version": "2.0.0" | ||
, "author": "Nicholas Penree <[email protected]>" | ||
, "keywords": ["mongodb", "mongoose", "plugin", "findOrCreate"] | ||
, "repository": { | ||
|