Socket
Socket
Sign inDemoInstall

@node-oauth/formats

Package Overview
Dependencies
0
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @node-oauth/formats

Validate ascii and unicode values.


Version published
Maintainers
2
Created

Readme

Source

@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.

Keywords

FAQs

Last updated on 11 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc