Wondering what’s next for npm?Check out our public roadmap! »

mongodb-security

0.1.0 • Public • Published

mongodb-security travis npm

Portable business logic of MongoDB security model, mostly string formatting.

example

var security = require('mongodb-security');
 
security.humanize({cluster: true})
.should.equal('For the deployment');
 
security.humanize({collection: 'users', db: 'mscope'})
.should.equal('On mscope.users');
 
security.humanize({collection: '', db: 'mscope'})
.should.equal('On any any collection in the mscope database');
 
security.humanize({collection: 'users', db: ''})
.should.equal('On the users collection in any database');

api

security.humanize(:resource)

Take the :resource of a MongoDB grant and hand back a literate sentence prefix.

todo

Install

npm i [email protected]

Version

0.1.0

License

Apache-2.0

Unpacked Size

36.3 kB

Total Files

10

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar