Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitly

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitly

A Bit.ly API library for Node.JS

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-1.85%
Maintainers
1
Weekly downloads
 
Created
Source

node-bitly - bit.ly API for nodejs

This module makes the bit.ly API accessible via NodeJS

Installation

To install via NPM type the following:

`npm install bitly`

You can also install via git by cloning:

'git clone git://github.com/tanepiper/node-bitly.git /path/to/node_modules/bitly'

Usage

var Bitly = require('bitly');
var bitly = new Bitly('<YOUR USERNAME>', '<YOUR API KEY>');
bitly.shorten('https://github.com/tanepiper/node-bitly', function(err, response) {
  if (err) throw err;

  // See http://code.google.com/p/bitly-api/wiki/ApiDocumentation for format of returned object
  var short_url = response.data.url

  // Do something with data
});

Bit.ly Features

  • Shorten Url.
  • Expand single/multiple Urls
  • Expand single/multiple hashes
  • Expand mixed urls/hashes
  • Get Clicks for URLs
  • Get Info about URLs
  • Lookup URLs
  • Check for pro domain
  • Check for authenticated account

FAQs

Package last updated on 16 Nov 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc