Socket
Socket
Sign inDemoInstall

blerg

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    blerg

A Blerg (blerg.cc) api client


Version published
Weekly downloads
18
decreased by-14.29%
Maintainers
1
Install size
8.16 kB
Created
Weekly downloads
 

Readme

Source

node-blerg

A nodejs blerg client

Usage

var blerg = require('blerg');

blerg.login('username', 'password', function(err) {
  blerg.put("Blerging from nodejs", function(err) {
    if(err) console.log("I tried but the blurg ain't blurgin', captian");
  });
  blerg.subscribe('ek', function(err) {
    if err console.log(err);
  });

});

// These don't require being logged in
blerg.info('ek', function(err, res){
  if(err) return console.log("No news is bad news");
  console.log("There are " + res.record_count + " records for ek");
});

blerg.get('ek', function(err, res) {
  if(err) return console.log("The signal seems fuzzy");
  if(res && res[0]) {
    console.log("Ek's most recent post is: '" + res[0].data + "' timestamped
    at " + res[0].timestamp);
  }
});

Basically, read the api as put on blerg and just use the path name as the method name. The username argument is only required for the login call, all others will add it automatically.

Keywords

FAQs

Last updated on 04 Dec 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc