@mongodb-js/saslprep
SASLprep: Stringprep Profile for User Names and Passwords, rfc4013
Last updated 6 months ago by devtoolsbot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mongodb-js/saslprep 
SYNC missed versions from official npm registry.

saslprep

Note: This is a fork of the original saslprep npm package and provides equivalent functionality.

Stringprep Profile for User Names and Passwords, rfc4013

Usage

const saslprep = require('@mongodb-js/saslprep');

saslprep('password\u00AD'); // password
saslprep('password\u0007'); // Error: prohibited character

API

saslprep(input: String, opts: Options): String

Normalize user name or password.

Options.allowUnassigned: bool

A special behavior for unassigned code points, see https://tools.ietf.org/html/rfc4013#section-2.5. Disabled by default.

License

MIT, 2017-2019 (c) Dmitriy Tsvettsikh

Current Tags

  • 1.3.2                                ...           latest (6 months ago)

15 Versions

  • 1.3.2                                ...           6 months ago
  • 1.3.1                                ...           7 months ago
  • 1.3.0                                ...           10 months ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.9                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           3 years ago

Copyright 2013 - present © cnpmjs.org | Home |