@reactivers/shortlink
Introduction
- @reactivers/shortlink is a library that creates shortlink free.
- You can start to use it now!
- If you want to see the statistics and more you can check out the Panel docs
Getting Started
Install
npm install --save @reactivers/shortlink yarn add @reactivers/shortlink
Interface
interface IShortenLinkParams { link: string; } interface IShortenLinkResponse { link: string; shortlink: string; } declare type IShortenLink = ( params: IShortenLinkParams ) => Promise<IShortenLinkResponse>;
Example
import { shortenLink } from "@reactivers/shortlink"; const getShortLink = async (url: string) => { const { shortlink } = await shortenLink({ link: url }); return shortlink; };
