@tastekim/url-shortener
TypeScript icon, indicating that this package has built-in type declarations

1.1.3Β β€’Β PublicΒ β€’Β Published

Tastekim-Shortener

κΈ΄ url 을 가독성이 쒋은 짧은 url 둜 λ°”κΎΈμ–΄μ£ΌλŠ” λͺ¨λ“ˆμž…λ‹ˆλ‹€. 개인적으둜 μš΄μ˜ν•˜λŠ” μ„œλ²„λ₯Ό 톡해 μƒμ„±ν•˜κ³  있으며 일정 click count λ₯Ό μ²΄ν¬ν•΄μ„œ expire ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. commonjs와 ESM을 λͺ¨λ‘ μ§€μ›ν•©λ‹ˆλ‹€. Buy Me a Coffee

Install

npm install @tastekim/url-shortener

Usage

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 을 λ‹€λŸ‰ μƒμ„±ν•˜κ²Œ 되면 λŒ€κΈ° μ‹œκ°„μ΄ μƒκΉλ‹ˆλ‹€.

Readme

Keywords

none

Package Sidebar

Install

npm i @tastekim/url-shortener

Weekly Downloads

53

Version

1.1.3

License

ISC

Unpacked Size

6.22 kB

Total Files

7

Last publish

Collaborators

  • tastekim