CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
readme.md30 linesDownload Raw Back to saslprep
1# saslprep2 3_Note: This is a fork of the original [`saslprep`](https://www.npmjs.com/package/saslprep) npm package4and provides equivalent functionality._5 6Stringprep Profile for User Names and Passwords, [rfc4013](https://tools.ietf.org/html/rfc4013)7 8### Usage9 10```js11const saslprep = require('@mongodb-js/saslprep');12 13saslprep('password\u00AD'); // password14saslprep('password\u0007'); // Error: prohibited character15```16 17### API18 19##### `saslprep(input: String, opts: Options): String`20 21Normalize user name or password.22 23##### `Options.allowUnassigned: bool`24 25A special behavior for unassigned code points, see https://tools.ietf.org/html/rfc4013#section-2.5. Disabled by default.26 27## License28 29MIT, 2017-2019 (c) Dmitriy Tsvettsikh30