Skip to content

gajus/punycode-url

Repository files navigation

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'

About

Encodes/ decodes URLs to punycode/ unicode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published