hyperagent
hyper+json client for node.js and the browser
Last updated 5 years ago by camshaft .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hyperagent 
SYNC missed versions from official npm registry.

hyperagent

hyper+json client for node.js and the browser.

Installation

Node

$ npm install hyperagent

Component

$ component install hypergroup/hyperagent

Usage

Call the hyperagent function, passing the root url of the hyper+json API.

var hyperagent = require('hyperagent');

var client = hyperagent('http://api.example.com');

Use the client to traverse any paths

client('.users.0.name', function(err, name) {
  console.log('Hello, ' + name);
});

client('.users.0.friends.0.friends.0.name', function(err, name) {
  console.log('Hello friend of a friend, ' + name);
});
client.submit('.users.0.update', {name: 'Mike'}, function(err, body, res) {
  console.log(res);
});

Current Tags

  • 0.2.10                                ...           latest (5 years ago)

10 Versions

  • 0.2.10                                ...           5 years ago
  • 0.2.9                                ...           5 years ago
  • 0.2.8                                ...           6 years ago
  • 0.2.7                                ...           6 years ago
  • 0.2.6                                ...           6 years ago
  • 0.2.5                                ...           6 years ago
  • 0.2.4                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (4)

Copyright 2014 - 2017 © taobao.org |