@tastekim/url-shortener
v1.1.3
Published
π°π· Easy way to make your long url shorter.
Readme
Tastekim-Shortener
κΈ΄ url μ κ°λ
μ±μ΄ μ’μ μ§§μ url λ‘ λ°κΎΈμ΄μ£Όλ λͺ¨λμ
λλ€.
κ°μΈμ μΌλ‘ μ΄μνλ μλ²λ₯Ό ν΅ν΄ μμ±νκ³ μμΌλ©° μΌμ click count λ₯Ό 체ν¬ν΄μ expire νκ³ μμ΅λλ€.
commonjsμ ESMμ λͺ¨λ μ§μν©λλ€.
Buy Me a Coffee
Install
npm install @tastekim/url-shortenerUsage
import { TasteShortener } from '@tastekim/url-shortener';
const url = 'http://github.com/tastekim';
const result = await TasteShortener(url);
console.log(result);
// or
const { TasteShortener } = require('@tastekim/url-shortener');
const url = 'http://github.com/tastekim';
const result = await TasteShortener(url);
console.log(result);Output
interface Response {
success: boolean;
message: string;
shortenUrl: string;
}Warning
- μ§§μ μκ° λμμ shorten url μ λ€λ μμ±νκ² λλ©΄ λκΈ° μκ°μ΄ μκΉλλ€.
