UNPKG

mongoose-find-or-create

Version:

A plugin for Mongoose which adds the findOrCreate method to models. The method will either append an existing object or save a new one, depending on wether it finds it or not.

30 lines (29 loc) 842 B
{ "name": "mongoose-find-or-create", "version": "1.3.1", "description": "A plugin for Mongoose which adds the findOrCreate method to models. The method will either append an existing object or save a new one, depending on wether it finds it or not.", "main": "index.js", "scripts": { "test": "mocha" }, "repository": { "type": "git", "url": "git+https://github.com/mtimofiiv/mongoose-findorcreate.git" }, "keywords": [ "mongoose", "findorcreate" ], "author": "Mike Timofiiv <https://fiiv.io>", "license": "MIT", "bugs": { "url": "https://github.com/mtimofiiv/mongoose-findorcreate/issues" }, "homepage": "https://github.com/mtimofiiv/mongoose-findorcreate#readme", "devDependencies": { "chai": "^3.5.0", "dotenv": "^4.0.0", "mocha": "^3.2.0", "mongoose": "^4.8.1" } }