hook-javascript

0.3.9 • Public • Published

hook-javascript client Build status

Selenium Test Status

JavaScript client for hook.

How to use

Initialize with your app's credentials:

var hook = new Hook.Client({
  endpoint:   "http://localhost:4665/",
  app_id: 1,   // your app id
  key: 'test'  // browser credentials of your app
});

Creating collection entries:

hook.collection('posts').create({
  title: "Post name",
  summary: "My awesome new post",
  stars: 5
});

Filtering:

hook.collection('posts').where('stars', '>=', 5).then(function(data) {
  console.log(data);
});

View full documentation here.

How to build

You'll need nodejs installed first. Then run the following commands:

$ npm install -g grunt-cli bower
$ npm install
$ bower install
$ grunt

To build and publish the docs:

make publish-docs

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.93latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.93
0.3.80
0.3.70
0.3.61
0.3.51
0.3.40
0.3.30
0.3.20
0.3.10
0.2.20
0.2.00

Package Sidebar

Install

npm i hook-javascript

Weekly Downloads

5

Version

0.3.9

License

none

Last publish

Collaborators

  • endel