Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 1.0KB

12345678910111213141516171819202122232425262728293031
  1. # saslprep
  2. [![Build Status](https://travis-ci.org/reklatsmasters/saslprep.svg?branch=master)](https://travis-ci.org/reklatsmasters/saslprep)
  3. [![npm](https://img.shields.io/npm/v/saslprep.svg)](https://npmjs.org/package/saslprep)
  4. [![node](https://img.shields.io/node/v/saslprep.svg)](https://npmjs.org/package/saslprep)
  5. [![license](https://img.shields.io/npm/l/saslprep.svg)](https://npmjs.org/package/saslprep)
  6. [![downloads](https://img.shields.io/npm/dm/saslprep.svg)](https://npmjs.org/package/saslprep)
  7. Stringprep Profile for User Names and Passwords, [rfc4013](https://tools.ietf.org/html/rfc4013)
  8. ### Usage
  9. ```js
  10. const saslprep = require('saslprep')
  11. saslprep('password\u00AD') // password
  12. saslprep('password\u0007') // Error: prohibited character
  13. ```
  14. ### API
  15. ##### `saslprep(input: String, opts: Options): String`
  16. Normalize user name or password.
  17. ##### `Options.allowUnassigned: bool`
  18. A special behavior for unassigned code points, see https://tools.ietf.org/html/rfc4013#section-2.5. Disabled by default.
  19. ## License
  20. MIT, 2017 (c) Dmitriy Tsvettsikh