bitclydeprecated

Simple bitly CLI client

Usage no npm install needed!

<script type="module">
  import bitcly from 'https://cdn.skypack.dev/bitcly';
</script>

README

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