Neocon Propaganda Machine
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

bitcly

1.1.1 • Public • Published

bitcly

Simple bitly CLI client

Build Status js-semistandard-style

Install

$ npm install --global bitcly

Usage

$ bitcly --help

  Simple bitly CLI client

  Usage
    $ bitcly <url>

  Example
    $ bitcly http://github.com/sotojuan/bitcly
    http://bit.ly/1m8bf9q

As a module

bitcly can also be used as a module, though it works better as a CLI.

npm install --save bitcly
var bitcly = require('bitcly');
 
bitcly('http://github.com/sotojuan/bitcly')
  .then(url => { console.log(url); }) // http://bit.ly/1m8bf9q
  .catch(error => { console.log(error); });

API

bitcly(longURL)

longURL

Type: string

The URL you want to shorten.

License

MIT © Juan Soto

install

npm i bitcly

Downloadsweekly downloads

3

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar