Google News
logo
NodeJS - Interview Questions
What is Punycode ?
Punycode can be defined as an encoding syntax in Node.js which is helpful for converting the Unicode string of characters into ASCII. This is done as the hostnames can only comprehend ASCII codes and not Unicode. While it was bundled up within the default package in recent versions, you can use it in the previous version using the following code:
 
punycode = require(‘punycode’);
Advertisement