@node-oauth/formats
v1.0.0
Published
Validate ascii and unicode values.
Downloads
100,810
Readme
@node-oauth/formats
Minimal, RFC 6749 compliant ascii and unicode validator.
This package is intended to be used with a OAuth2 server, like @node-oauth/node-oauth2-server , but can also be used with any other project, that shares the same requirements.
Install
$ npm install @node-oauth/formats
Usage
const isFormat = require('@node-oauth/formats')
isFormat.nchar('Hello, World!') // false
isFormat.nqchar('Hello, World!') // true
For detailed usage see the API docs
Test
npm install
npm run lint # run esline in check mode
npm run lint:fix # run esline in check mode
npm run test # run test once
npm run test:coverage # run tests with coverage report
License
This project has been outsourced from @node-oauth/node-oauth2-server , which is a fork from oauth2-server . The licence remains MIT, see our license file.