Nepotistic Pontifex Maximus
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

mongodb-security

0.2.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 mongodb-security

DownloadsWeekly Downloads

483

Version

0.2.0

License

Apache-2.0

Unpacked Size

32.8 kB

Total Files

7

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