gh-token-scopes
If your application relies on personal access tokens (whose permissions can be updated at any time) you may want to verify the scope range before making any API calls; this module helps you do just that.
** I don’t want to expose an access token, so CI is out of the question, but you can easily run the tests yourself. **
Install
$ npm install gh-token-scopes
Usage
var scopes = var contains = var token = '{some-personal-access-token}'
Running the tests
$ TOKEN={some-personal-access-token} REQUIRED_SCOPES={some-comma-delimited-list-of-scopes} npm test
Note: TOKEN
is the only required environment variable.