New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

buffer-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buffer-api

Node wrapper for the Buffer API.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

Buffer API

Node wrapper for the Buffer API.

Installation

$ npm install buffer-api

Usage

CoffeeScript

Buffer = require 'buffer-api'

access_token = XXX
api = new Buffer access_token

api.getUserInfo (err, user) ->

if err? then return console.log "Error: #{err}"

  console.log "Name: #{user.name}""
  console.log "Created: #{new Date user.created_at}"
  console.log "Activity: #{new Date user.activity_at}"

api.getProfileInfo (err, profiles) ->

  if err? then return console.log "Error: #{err}"

  for profile in profiles
    console.log "#{profile.service_username} @ #{profile.service}"

link = "http://bufferapp.com"
api.getLinks link, (err, info) =>

  if err? then return console.log "Error: #{err}"

  console.log "Links to #{link} : #{info.shares}"

api.getConfiguration (err, config) ->

  if err? then return console.log "Error: #{err}"

  console.log "Supported services:"
  console.log service for service,info of config.services

Note

This library is very incomplete as it stands.

The only functionality available is to get the user and profile objects.

More functionality will come in time.

License

MIT

Keywords

FAQs

Package last updated on 11 Jan 2013

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