https://github.com/afeiship/thunder-url
Download url to thunder url.
https://github.com/afeiship/thunder-url
base64 decode encode thunder url
Last synced: over 1 year ago
JSON representation
Download url to thunder url.
- Host: GitHub
- URL: https://github.com/afeiship/thunder-url
- Owner: afeiship
- License: mit
- Created: 2024-03-25T14:47:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T15:09:33.000Z (over 2 years ago)
- Last Synced: 2025-02-07T11:10:05.939Z (over 1 year ago)
- Topics: base64, decode, encode, thunder, url
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# thunder-url
> Download url to thunder url.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install @jswork/thunder-url
```
## usage
```js
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);
```
## license
Code released under [the MIT license](https://github.com/afeiship/thunder-url/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/thunder-url
[version-url]: https://npmjs.org/package/@jswork/thunder-url
[license-image]: https://img.shields.io/npm/l/@jswork/thunder-url
[license-url]: https://github.com/afeiship/thunder-url/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/thunder-url
[size-url]: https://github.com/afeiship/thunder-url/blob/master/dist/index.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/thunder-url
[download-url]: https://www.npmjs.com/package/@jswork/thunder-url