1.0.2 • Published 10 years ago

archer-node v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

Archer

Simple promise wrapper around the Needle API.

Installation

Install via NPM:

npm install archer-node --save

And require it into your modules

var archer = require('archer-node');

Usage

Pass the same arguments as you would to Needle, but exclude the callback, instead use done or spread. Note that spread is recommended as the promise is resolved as an array of arguments (response and body).

archer.get('https://us5.api.mailchimp.com/schema/3.0/Lists/Instance.json')

.spread(function (res, body) {
  console.log(res.statusCode, body);
});
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago