is-punycode
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Is Punycode Travis CI Build Status

Check if a string is punycode.

NPM Badge

Install

npm install is-punycode

Usage

const punycodeRegex = require("punycode-regex");
 
isPunycode("xn--tiq49xqyj")
//=> true

API

isPunycode(string)

string

Type: string

The string to check.

Package Sidebar

Install

npm i is-punycode

Weekly Downloads

19

Version

1.0.1

License

MIT

Unpacked Size

2.94 kB

Total Files

6

Last publish

Collaborators

  • richienb