Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tastekim/tastekim-shortener
[npm] π°π· Easy way to make your long url shorter.
https://github.com/tastekim/tastekim-shortener
npm typescript
Last synced: 11 days ago
JSON representation
[npm] π°π· Easy way to make your long url shorter.
- Host: GitHub
- URL: https://github.com/tastekim/tastekim-shortener
- Owner: tastekim
- Created: 2023-07-15T07:49:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T13:36:31.000Z (over 1 year ago)
- Last Synced: 2024-12-09T18:37:55.691Z (16 days ago)
- Topics: npm, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@tastekim/url-shortener
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tastekim-Shortener
κΈ΄ url μ κ°λ μ±μ΄ μ’μ 짧μ url λ‘ λ°κΎΈμ΄μ£Όλ λͺ¨λμ λλ€.
κ°μΈμ μΌλ‘ μ΄μνλ μλ²λ₯Ό ν΅ν΄ μμ±νκ³ μμΌλ©° μΌμ click count λ₯Ό 체ν¬ν΄μ expire νκ³ μμ΅λλ€.
`commonjs`μ `ESM`μ λͺ¨λ μ§μν©λλ€.
[Buy Me a Coffee](https://www.buymeacoffee.com/tastekim)
## Install
```
npm install @tastekim/url-shortener
```
## Usage```typescript
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
```typescript
interface Response {
success: boolean;
message: string;
shortenUrl: string;
}
```## Warning
* 짧μ μκ° λμμ shorten url μ λ€λ μμ±νκ² λλ©΄ λκΈ° μκ°μ΄ μκΉλλ€.