forqus-node

0.1.1 • Public • Published

forqus-node

This library allows use of the forq.us URL shortener from node.

Example Usage

var Forqus = require('./index'),
    forqus = new Forqus('your-api-key');

forqus.shorten('https://some.url').then(function (result) {
    //shortened URL is in result.shortenedUrl
    console.log(result);
}).catch(function (err) {
    //oh no! something went wrong.
});

Readme

Keywords

none

Package Sidebar

Install

npm i forqus-node

Homepage

forq.us

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • danalstadt