shortener-link
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

Shortener

🔗 Shortener

Install

You can install with npm:

  npm install shortener-link

You can install with yarn:

  yarn add shortener-link

ouo.io Syntax

You short a link with ouo.io.

You can use:

const ouoIo = require('shortener-link/ouoIo');

const link = 'https://7-up.net/embed-ih21389uah9a.html';

const ouoShort = ouoIo({ apiKey: 'TYvpHJGW' });

const shortenedMask = ouoShort.mask(link);
// > { valid: true, linkShorted: "https://ouo.io/qs/TYvpHJGW?s=https://7-up.net/embed-ih21389uah9a.html" }

ouoShort.short(link)
  .then(shortened => {

    console.log(shortened)
    // > { valid: true, linkShorted: "https://ouo.io/UcPf3IH" }
  })
import ouoIo from 'shortener-link/ouoIo';

const link = 'https://7-up.net/embed-ih21389uah9a.html';

const ouoShort = ouoIo({ apiKey: 'TYvpHJGW' });

const shortenedMask = ouoShort.mask(link);
// > { valid: true, linkShorted: "https://ouo.io/qs/TYvpHJGW?s=https://7-up.net/embed-ih21389uah9a.html" }

const shortened = ouoShort.short(link);
// > Promise<{ valid: true, linkShorted: "https://ouo.io/UcPf3IH" }>

With Support to:

  • ouo.io
  • stfly.me
  • shrtfly.com
  • shrinkearn.com
  • clk.sh
  • fc.lc

Package Sidebar

Install

npm i shortener-link

Weekly Downloads

1

Version

0.6.3

License

MIT

Unpacked Size

21.9 kB

Total Files

25

Last publish

Collaborators

  • marconwillian