Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swag666baby/url-shortener

a url shortener.
https://github.com/swag666baby/url-shortener

api express typescript url-shortener

Last synced: about 1 month ago
JSON representation

a url shortener.

Awesome Lists containing this project

README

        



# building
**• cloning**
```bash
git clone https://github.com/Swag666baby/url-shortener
cd url-shortener
```

**• running**
```bash
yarn
tsc
node dist/server
```

### example of use
```javascript
const axios = require("axios");
async function shortener(){
const request = await axios.post("http://localhost:3000/shorter", {"url": "https://github.com"})
console.log(request.data)
}
shortener()

```