shimo-scope
v1.0.3
Published
Scope utilities
Downloads
5
Readme
Shimo Scope
Install
npm install shimo-scope
Usage
const scope = require('shimo-scope');
scope('read', 'write'); // false
scope('read account', 'account'); // true
scope.normalize('public read account'); // 'read account'
scope.normalize('read write'); // 'write'
scope.normalize('account'); // 'public account'