is-punycode

Check if a string is punycode.

Usage no npm install needed!

<script type="module">
  import isPunycode from 'https://cdn.skypack.dev/is-punycode';
</script>

README

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.