Nantes Paradox Market

    rhjs

    1.0.13 • Public • Published

    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

    Install

    npm i rhjs

    DownloadsWeekly Downloads

    6

    Version

    1.0.13

    License

    MIT

    Unpacked Size

    4.71 kB

    Total Files

    4

    Last publish

    Collaborators

    • yemrekeskin