Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hull

Package Overview
Dependencies
Maintainers
2
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hull

A Node.js client for hull.io APIs

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
484
increased by14.42%
Maintainers
2
Weekly downloads
 
Created
Source

Node.js client for hull.io Codeship Status for hull/hull-node

This provides utility functions to use hull.io APIs within Node.js apps.

Usage

var hull = require('hull')


hull.conf({
  appId: 'YOUR_HULL_APP_ID',
  orgUrl: 'YOUR_HULL_ORG_URL',
  appSecret: 'YOUR_HULL_APP_SECRET'
});

// Instanciates a client for the API
var client = hull.client();

API

  • hull.conf(obj) : Returns the global configuration or sets it if an object is given. It's mostly a helper to avoid the necessity of specifying the configuration everytime it is needed.
  • hull.utils.signUserData(userJson/*, appSecret*/) : Creates a signed id for the user passed in parameter. It allows to connect your own users to hull.io services.
  • hull.utils.checkSignedUserId(userId, userSig/*, appSecret*/) : Checks the validity of the signature relatively to a user id
  • hull.middleware(/*appId, appSecret, deserializer*/): Generates a middleware to add to your Connect/Express apps. It will check if a user is onnected.
  • hull.client(): Instanciates an HTTP client to hull.io APIs.

Using the HTTP client

Once you have instanciated a client, you can use one of the get, post, putor delete methods to perform actions of our APIs. The first parameter is the route, the second is the set of parameters you want to send with the request, the third is a callback.

Resources

We have built a demo that uses this library, check out hull_userbase.

Also check out the API documentation to learn what you can achieve with our APIs.

LICENCE

MIT

FAQs

Package last updated on 19 Jun 2013

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