You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

diy

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diy

API client for DIY.org

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
3
-85%
Maintainers
2
Weekly downloads
 
Created
Source

diy

JavaScript API client for DIY.org

Build Status

Installation

npm install diy

Stream Pattern

var diy    = require('diy')('*');
var request = diy({
    method: 'GET',
    uri:    '/status'
}).pipe(process.stdout);

request.on('error', function (err) {
    // Oh noes! 
});

Callback Pattern

var diy = require('diy')('*');

diy({
    method: 'GET',
    uri:    '/status'
}, function (err, body) {
    window.alert(body); 
});

Testing

npm install && npm test

FAQs

Package last updated on 20 Aug 2014

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