JSPM

stringprep

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q48385F
  • License LGPL

Pure-Javascript stringprep implementation. Fork of the moribund NPM 'libidn' package.

Package Exports

  • stringprep

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stringprep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-libidn

This library is intended to be a port of GNU Libidn to Javascript, for use in node.js. At the moment, however, only stringprep (rfc3454) is implemented. Punycode and IDNA are TBD.

Installation

npm install libidn

Usage

var stringprep = require('libidn').stringprep;
stringprep.nameprep("eXample.COM");
// other profiles, e.g.: stringprep.nodeprep, stringprep.resourceprep