阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js punycode 域名代码

      Node.js punycode 域名代码

      版本变更
      v7.0.0Accessing this module will now emit a deprecation warning.

      The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead.

      The punycode module is a bundled version of the Punycode.js module. It can be accessed using:

      const punycode = require('punycode');
      

      Punycode is a character encoding scheme defined by RFC 3492 that is primarily intended for use in Internationalized Domain Names. Because host names in URLs are limited to ASCII characters only, Domain Names that contain non-ASCII characters must be converted into ASCII using the Punycode scheme. For instance, the Japanese character that translates into the English word, ‘example’ is ‘例’. The Internationalized Domain Name, ‘例.com’ (equivalent to ‘example.com’) is represented by Punycode as the ASCII string ‘xn–fsq.com’.

      The punycode module provides a simple implementation of the Punycode standard.

      The punycode module is a third-party dependency used by Node.js and made available to developers as a convenience. Fixes or other modifications to the module must be directed to the Punycode.js project.

      目录
      本文目录
      目录