shortmyurl
v1.0.16
Published
A simple npm package to shorten your long urls to short url
Downloads
10
Maintainers
Readme
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;
});