idn-allowed-code-points-regex is a regular expression that matches any symbol in the list of allowed IDN code points that Verisign uses by default. See the Verisign SRS IDN registration rules for more info.
Via npm:
npm install idn-allowed-code-points-regex
In Node.js:
const regex = require('idn-allowed-code-points-regex');
Mathias Bynens |
idn-allowed-code-points-regex is available under the MIT license.