decodeUriComponent
A pretty fast yet robust decodeURIComponent implementation that supports unicode decoding (i.e. %uxxxx). Now also support other custom encodings such as gbk, big5, shift-jis, euc-jp, etc.
Installation
npm install decodeuricomponent
Usage
const decodeUriComponent = ; console; // --> '2.8i手动5速'console; // --> '中國'console; // --> '服装'
Dependency
- Use iconv-lite to make encoding conversion;
- Arrow function feature of ES6