1.0.13 • Published 4 years ago

rhjs v1.0.13

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

rhjs v1.0.13

The rhjs library exported as Node.js modules.

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

Installation is done using the npm install command:

$ npm install rhjs

Usage

const express = require("express");
const rhjs = require("rhjs");

const app = express();
const port = 3000;

app.get("/", (req, res) => {
  const success = result => {
    console.log(result);
    res.json(result);
  };
  const error = result => {
    console.log(result);
    res.json(result);
  };
  rhjs.get("https://jsonplaceholder.typicode.com/todos", success, error);

  // res.send('empty data');
});

app.listen(port, () => console.log(`Example app listening on port ${port}!`));

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago