Skip to content
SASLprep: Stringprep Profile for User Names and Passwords.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib update code style and test engine May 1, 2019
test
.editorconfig
.gitattributes
.gitignore
.travis.yml update code style and test engine May 1, 2019
CHANGELOG.md
LICENSE add license Jun 21, 2017
code-points.mem
generate-code-points.js update code style and test engine May 1, 2019
index.js
package-lock.json
package.json
readme.md add changelog Apr 30, 2019

readme.md

saslprep

Build Status npm node license downloads

Stringprep Profile for User Names and Passwords, rfc4013

Usage

const saslprep = require('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

You can’t perform that action at this time.