An RFC 2253 parser and formatter for X.500/X.501 distinguished names, used in LDAPv3 and SSL certificates. Version 0.2.0 is the latest stable release; the package has infrequent updates. It provides parse, format, and escape functions, plus DistinguishedName and RelativeDistinguishedName classes with methods like match, get, getAll, and has. Unlike alternatives (e.g., ldapjs DN), rfc2253 focuses strictly on parsing and formatting according to RFC 2253 without extra LDAP client features. Requires an ES2015-compatible Map global; for older Node.js versions, a polyfill like core-js may be needed.
npm install rfc2253No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates parsing, formatting, escaping, matching, and getAll with a DN string.
Use `format()` for standard RFC 2253 output.
Normalize keys to uppercase/lowercase before calling get or match.
Install core-js: require('core-js/modules/es6.map'); or use Node.js >=4.Install core-js: npm install core-js and add require('core-js/modules/es6.map') at entry point.Use named imports: import { parse } from 'rfc2253';Ensure the variable is a result of parse(): const dn = parse(str);
No dependency data recorded yet.