吕君喜 406d880ac6 first | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
lib | %!s(int64=3) %!d(string=hai) anos | |
test | %!s(int64=3) %!d(string=hai) anos | |
.editorconfig | %!s(int64=3) %!d(string=hai) anos | |
.eslintrc | %!s(int64=3) %!d(string=hai) anos | |
.gitattributes | %!s(int64=3) %!d(string=hai) anos | |
.travis.yml | %!s(int64=3) %!d(string=hai) anos | |
LICENSE | %!s(int64=3) %!d(string=hai) anos | |
code-points.mem | %!s(int64=3) %!d(string=hai) anos | |
generate-code-points.js | %!s(int64=3) %!d(string=hai) anos | |
index.js | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
readme.md | %!s(int64=3) %!d(string=hai) anos |
Stringprep Profile for User Names and Passwords, rfc4013
const saslprep = require('saslprep')
saslprep('password\u00AD') // password
saslprep('password\u0007') // Error: prohibited character
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.
MIT, 2017 (c) Dmitriy Tsvettsikh