Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 564 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 564 Bytes

Url Shortener For Reactjs

A simple npm package to shorten your long urls to short url for reactjs

#Installation

npm i shortmyurl

yarn add shortmyurl

pnpm add shortmyurl

#Usage 1


import shortener from "../node_modules/shortmyurl/";
async function shortenUrl() {
        const shortenedUrl = await shortener("https://www.google.com");
    }

      shortenUrl();


#Usage 2

import shortener from "../node_modules/shortmyurl/";

const shortenedUrl = shortener("https://www.google.com").then((res) => {
       const shortenedUrl = res;
    });