Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
/ flashheart Public archive

A fully-featured Node.js REST client built for ease-of-use and resilience

License

Notifications You must be signed in to change notification settings

bbc/flashheart

Repository files navigation

flashheart

  • This repository is deprecated and no longer maintained. Please consider using another library. *


Flashheart


NPM downloads Build Status

A fully-featured Node.js REST client built for ease-of-use and resilience

flashheart is built on http-transport to provide everything you need to build HTTP-based services with confidence.

Installation

npm install --save flashheart

Usage

const flashheart = require('flashheart');

const client = flashheart.createClient({
  name: 'my_service',
  logger: console
});

const response = await client.get('http://echo.jsontest.com/key/value/');
console.log(response.body);
// {key: "value"}

Documentation

For more examples and API details, see API documentation

Test

npm test

To generate a test coverage report:

npm run coverage