Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gajus/punycode-url
Encodes/ decodes URLs to punycode/ unicode.
https://github.com/gajus/punycode-url
decode encode punycode unicode url
Last synced: 5 days ago
JSON representation
Encodes/ decodes URLs to punycode/ unicode.
- Host: GitHub
- URL: https://github.com/gajus/punycode-url
- Owner: gajus
- License: other
- Created: 2019-09-06T17:47:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T17:50:54.000Z (over 5 years ago)
- Last Synced: 2025-01-08T12:50:12.231Z (10 days ago)
- Topics: decode, encode, punycode, unicode, url
- Language: JavaScript
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# punycode-url
[![Travis build status](http://img.shields.io/travis/gajus/punycode-url/master.svg?style=flat-square)](https://travis-ci.org/gajus/punycode-url)
[![Coveralls](https://img.shields.io/coveralls/gajus/punycode-url.svg?style=flat-square)](https://coveralls.io/github/gajus/punycode-url)
[![NPM version](http://img.shields.io/npm/v/punycode-url.svg?style=flat-square)](https://www.npmjs.org/package/punycode-url)
[![Canonical Code Style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical)
[![Twitter Follow](https://img.shields.io/twitter/follow/kuizinas.svg?style=social&label=Follow)](https://twitter.com/kuizinas)Encodes/ decodes URLs to punycode/ unicode.
## Usage
```js
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'```