UNPKG

mongoose-hidden

Version:

Hides certain model properties when invoking toJSON or toObject.

40 lines (39 loc) 1.07 kB
{ "name": "mongoose-hidden", "version": "1.9.1", "author": "Michael Bøcker-Larsen <m19n@pm.me>", "description": "Hides certain model properties when invoking toJSON or toObject.", "keywords": [ "mongoose", "hidden", "hide", "property", "schema", "password", "id" ], "repository": { "type": "git", "url": "https://github.com/mblarsen/mongoose-hidden.git" }, "main": "index.js", "scripts": { "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v && rm -rf ./coverage", "mocha": "mocha", "preversion": "npm run mocha", "postversion": "git push && git push --tags" }, "license": "MIT", "bugs": "http://github.com/mblarsen/mongoose-hidden/issues", "dependencies": { "mpath": "^0.8.0" }, "devDependencies": { "coveralls": "^3.0.6", "istanbul": "^0.4.2", "mocha": "^6.0.0", "mongoose": "^5.6.9", "should": "^13.1.0" }, "thanks": "https://flattr.com/@mblarsen" }