mongodb-js / security

#wip Portable business logic of MongoDB security model, mostly string formatting

Home Page:https://github.com/mongodb-js/security

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

#wip Portable business logic of MongoDB security model, mostly string formatting

https://github.com/mongodb-js/security


Languages

Language:JavaScript 100.0%