- This repository is deprecated and no longer maintained. Please consider using another library. *
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.
npm install --save flashheart
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"}
For more examples and API details, see API documentation
npm test
To generate a test coverage report:
npm run coverage