wayneshorter

0.1.3 • Public • Published

WayneShorter API Wrapper Build Status

Simple library for using the WayneShorter API to generate shortened URLs.

Installation

npm install wayneshorter --save

Usage

var wayneshorter = require('wayneshorter');
wayneshorter.shorten('http://google.com', function(err, result) {
  // PARSED RESULT OBJECT
});

Example Output

{
  payload: "http://google.com",
  identifier: "4krJVcnux",
  shortlink: "http://shrtr.in/4krJVcnux"}  
}

Package Sidebar

Install

npm i wayneshorter

Weekly Downloads

1

Version

0.1.3

License

GPL-3.0

Last publish

Collaborators

  • willricketts