Skip to content

Basic string encoder and decoder, without domain stuff

License

Notifications You must be signed in to change notification settings

paiv/punycode-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Punycode

Basic string encoder and decoder, without domain stuff.

standwithukraine

Usage:

const punycode = require("./punycode")
let s = "Доброго вечора"
let p = punycode.encode(s)
let q = punycode.decode(p)
assert(q === s)