1.1.7 • Published 28 days ago

@mongodb-js/saslprep v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

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

1.1.7

28 days ago

1.1.6

1 month ago

1.1.5

3 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.1

7 months ago

1.1.0

10 months ago