Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marsprince/nest-tinyurl
https://github.com/marsprince/nest-tinyurl
nestjs typeorm typescript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/marsprince/nest-tinyurl
- Owner: marsprince
- License: mit
- Created: 2018-09-26T07:57:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T08:37:26.000Z (over 6 years ago)
- Last Synced: 2024-04-25T00:57:33.419Z (9 months ago)
- Topics: nestjs, typeorm, typescript
- Language: TypeScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
This's a tinyUrl module for [Nest](https://github.com/nestjs/nest) to generate short url.## Installation
```bash
$ npm install nest-tinyurl
```## Quick Start
### Include entity
```typescript
export { TinyUrl } from 'nest-tinyurl';
```### Include module
```typescript
import { TinyUrlModule } from 'nest-tinyurl';
```### Use service
```typescript
import { TinyUrlService } from 'nest-tinyurl';
```generate
```typescript
TinyUrlService.generateShortUrl(url)
```get
```typescript
TinyUrlService.getUrlByShortUrl(url)
```