1.1.5 • Published 2 months ago

@mongodb-js/saslprep v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months 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.5

2 months ago

1.1.4

4 months ago

1.1.3

4 months ago

1.1.1

6 months ago

1.1.0

9 months ago