npm.io
1.0.2 • Published 2 years ago

shorturl-reverser

Licence
MIT
Version
1.0.2
Deps
2
Size
18 kB
Vulns
1
Weekly
0
Stars
1

npm version NPM

short-url-reverser-js

A JavaScript library to reverse short URLs .

Features

  • Reverse short url to its original url!
Installation
npm install shorturl-reverser

or

yarn add shorturl-reverser
Usage

Import module

  const { reverser } = require('shorturl-reverser');
  import { reverser } from 'shorturl-reverser';

Use the function

  const url = await reverser('https://tinyurl.com/4hfst357');
  console.log(url); // https://www.youtube.com/watch?v=dQw4w9WgXcQ
Example

See examples.

Contribution guidelines

Your contributions are always welcome! Even if it's just a typo or a missing comma, we'll appreciate it.

  • Fork the repository
  • Create a branch with your feature or bug fix
  • Commit your changes
  • Create a pull request