API Client for connect with shorte.st.
$ npm install shortest-api --save
const shortestAPI = require('shortest-api')
const shortest = shortestAPI({
token: 'MY_TOKEN'
})
shortest('https://kikobeats.com', function (err, shortenURL) {
if (err) throw err
console.log(shortenURL) // => 'http://sh.st/3s2xg'
/* do something */
})
It creates an API client.
Required
Type: string
The service token.
MIT © Kiko Beats.