https://github.com/bbc/flashheart
A fully-featured Node.js REST client built for ease-of-use and resilience
https://github.com/bbc/flashheart
ignorearchive
Last synced: 7 months ago
JSON representation
A fully-featured Node.js REST client built for ease-of-use and resilience
- Host: GitHub
- URL: https://github.com/bbc/flashheart
- Owner: bbc
- License: other
- Archived: true
- Created: 2015-11-30T14:58:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T15:38:39.000Z (about 1 year ago)
- Last Synced: 2025-03-16T19:24:43.604Z (8 months ago)
- Topics: ignorearchive
- Language: JavaScript
- Homepage:
- Size: 1.28 MB
- Stars: 114
- Watchers: 37
- Forks: 24
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-nodejs - flashheart - REST client.  (Repository / HTTP)
- awesome-node - flashheart - REST client. (Packages / HTTP)
- awesome-nodejs-cn - flashheart - REST 客户端. (目录 / HTTP)
- awesome-nodejs - flashheart - A fully-featured Node.js REST client built for ease-of-use and resilience - ★ 88 (HTTP)
- awesome-nodejs-cn - flashheart - REST 客户端 (包 / HTTP)
README
# flashheart
* This repository is deprecated and no longer maintained. Please consider using another library. *

[](https://npmjs.org/package/flashheart)
[](https://travis-ci.org/bbc/flashheart)
> A fully-featured Node.js REST client built for ease-of-use and resilience
`flashheart` is built on [http-transport](https://github.com/bbc/http-transport) to provide everything you need to build HTTP-based services with confidence.
## Installation
```
npm install --save flashheart
```
## Usage
```js
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](https://bbc.github.io/flashheart)
## Test
```
npm test
```
To generate a test coverage report:
```
npm run coverage
```