包详细信息

is-punycode

Richienb142MIT1.0.1

Check if a string is punycode.

punycode, url, domain, check

自述文件

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.