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('https://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