0.0.5 • Published 4 years ago

node-shorten v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

node-shorten

node-shorten is a simple url shortener for Node.js.

Installation

npm install node-shorten --save

Usage

By default it will shorten URL with base 32 encoding, but you can choose base 64 for more complex encoding.

import shorten from 'node-shorten';

shorten("https://qqboxy.com/");
// ["FNYQJG", "UBF8QU", "E7R5VT", "2HAV5A"]

shorten("https://qqboxy.com/", { base: 64 });
// ["bZJAq2", "s9q4q2", "Yfx5c_", "!2SZR2", "z76Ai_", "ZYK8.3", "5jEwC_"]

License

Released under the MIT license. Copyright (c) 2020 Boxy Huang.

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago