0.6.3 • Published 2 years ago

shortener-link v0.6.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago