Sign In

@mongodb-js/saslprep

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/saslprep

SASLprep: Stringprep Profile for User Names and Passwords, rfc4013

latest
Source
npmnpm
Version
1.4.13
Version published
Weekly downloads
9.2M
-13.58%
Maintainers
8
Weekly downloads
 
Created
Source

saslprep

Note: This is a fork of the original saslprep npm package and provides equivalent functionality.

Stringprep Profile for User Names and Passwords, rfc4013

Usage

const saslprep = require('@mongodb-js/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

Keywords

sasl

FAQs

Package last updated on 24 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts