Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayrathore8492 committed Jun 22, 2021
1 parent 34e8b8e commit 2563bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ SUPERBATU_MONGO_COLLECTION="your-collection-name"
#### create a short url
```javascript
import { createShortUrl } from 'superbatu';
const result = createShortUrl('https://www.yoursuperlong.url')
const { uid, url } = await createShortUrl('https://www.yoursuperlong.url')
```
the result will have `uid`(a unique identifier for url) and `url` original URL.
`uid`(a unique identifier for url) and `url` original URL.

#### Serve short URL with expressjs
```javascript
Expand Down

0 comments on commit 2563bd7

Please sign in to comment.