Download url to thunder url.
npm install @jswork/thunder-url
import ThunderURL from '@jswork/thunder-url';
// encode:
const url = 'https://www.baidu.com';
const thunderUrl = ThunderURL.encode(url);
console.log(thunderUrl);
// decode:
const url2 = ThunderURL.decode(thunderUrl);
console.log(url2);
Code released under the MIT license.