Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "crab-rbac", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A Hierarchical Role Based Access library. Role, not Rule!", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -6,9 +6,22 @@ # crab-rbac | ||
Install the package | ||
`npm i crab-rbac --save` | ||
You can use the library with require | ||
`const {rbac} = require('crab-rbac')` | ||
or import it if you are using TypeScript | ||
`import {rbac} from 'crab-rbac'` | ||
## Testing | ||
To run the tests using `npm test` is necessary to install `npm i -g ts-node`. I highly suggest to install something like `faucet` (`npm i -g faucet`) and then pipe the output of npm test into it, in order to get an even more readable output. So the command is `npm test | faucet`. | ||
To run the tests using | ||
`npm test` | ||
is necessary to install | ||
`npm i -g ts-node` | ||
I highly suggest to install something like `faucet` (`npm i -g faucet`) and then pipe the output of npm test into it, in order to get an even more readable output. So the command is `npm test | faucet`. |
6974
27