Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.
/ security Public archive

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

Notifications You must be signed in to change notification settings

mongodb-js/security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published