您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
diligent 13e492f897 Added mocks of scrapes 4 年前
..
lib Init commit 4 年前
test Init commit 4 年前
.editorconfig Init commit 4 年前
.gitattributes Init commit 4 年前
.travis.yml Init commit 4 年前
CHANGELOG.md Init commit 4 年前
LICENSE Init commit 4 年前
code-points.mem Init commit 4 年前
generate-code-points.js Init commit 4 年前
index.js Init commit 4 年前
package.json Added mocks of scrapes 4 年前
readme.md Init commit 4 年前

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 © Dmitriy Tsvettsikh