You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Punycode.js [](https://www.npmjs.com/package/emoji-test-regex-pattern)[](https://www.jsdelivr.com/package/npm/punycode)
2
2
3
3
Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891).
4
4
@@ -12,7 +12,7 @@ This JavaScript library is the result of comparing, optimizing and documenting d
12
12
13
13
This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated).
14
14
15
-
The current version supports recent versions of Node.js only. It provides a CommonJS module and an ES6 module. For the old version that offers the same functionality with broader support, including Rhino, Ringo, Narwhal, and web browsers, see [v1.4.1](https://github.com/bestiejs/punycode.js/releases/tag/v1.4.1).
15
+
This project provides a CommonJS module that uses ES2015+ features and JavaScript module, which work in modern Node.js versions and browsers. For the old Punycode.js version that offers the same functionality in a UMD build with support for older pre-ES2015 runtimes, including Rhino, Ringo, and Narwhal, see [v1.4.1](https://github.com/mathiasbynens/punycode.js/releases/tag/v1.4.1).
16
16
17
17
## Installation
18
18
@@ -24,8 +24,12 @@ npm install punycode --save
24
24
25
25
In [Node.js](https://nodejs.org/):
26
26
27
+
> ⚠️ Note that userland modules don't hide core modules.
28
+
> For example, `require('punycode')` still imports the deprecated core module even if you executed `npm install punycode`.
29
+
> Use `require('punycode/')` to import userland modules rather than core modules.
0 commit comments