Skip to content

rsoorajs/url-shortener-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
    });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published