JSPM

punycode-url

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62
  • Score
    100M100P100Q59249F
  • License BSD-3-Clause

Encodes/ decodes URLs to punycode/ unicode.

Package Exports

  • punycode-url

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 (punycode-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

punycode-url

Travis build status Coveralls NPM version Canonical Code Style Twitter Follow

Encodes/ decodes URLs to punycode/ unicode.

Usage

import punycodeUrl from 'punycode-url';

punycodeUrl.toASCII('//gájùs.gájùs.com');
// '//xn--gjs-ela5j.xn--gjs-ela5j.com'

punycodeUrl.toUnicode('//xn--gjs-ela5j.xn--gjs-ela5j.com');
// '//gájùs.gájùs.com'