mongodb-security
Portable business logic of MongoDB security model
Last updated 5 years ago by imlucas .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mongodb-security 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (10 months ago)

5 Versions

  • 0.2.0                                ...           10 months ago
  • 0.1.0                                ...           10 months ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.1                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |