Skip to content

Commit

Permalink
docs: add scopesFor usage doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Feb 1, 2019
1 parent 5f5046e commit 29d0b9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ compact,
uniq,
sortedUniq,
pkg,
scopesFor,
CONTINENT_NAMES,
COUNTRY_NAMES,
COUNTRY_CODES,
Expand All @@ -49,6 +50,8 @@ const y = sortedUniq(x); // => { a: 1 }

const { name, description } = pkg(); // => { name: ..., version: ...}

const scopes = scopesFor('user', 'payment'); // => ['user:create', 'payment:create'];

```

## Test
Expand Down

0 comments on commit 29d0b9b

Please sign in to comment.