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

blerg

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blerg

A Blerg (blerg.cc) api client

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 04 Dec 2016

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