auth-permission

Represent a permission having an action and resource.

auth-permission

Represent a permission having an action and resource.

npm install auth-permission
component install alexmingoia/auth-permission
var Permission = require('auth-permission');
 
var permission = new Permission('read', 'forum');

Creates a new Permission with given action and resource.

var permission = new Permission('read', 'forum');
 
permission.name();
// => "read forum"