Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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
- Created: 2015-11-30T14:58:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T03:37:19.000Z (about 1 year ago)
- Last Synced: 2024-11-02T12:34:43.786Z (about 1 month ago)
- Topics: ignorearchive
- Language: JavaScript
- Homepage:
- Size: 1.28 MB
- Stars: 114
- Watchers: 40
- 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-cn - flashheart - REST 客户端 (包 / HTTP)
- awesome-nodejs - flashheart - REST client. ![](https://img.shields.io/github/stars/bbc/flashheart.svg?style=social&label=Star) (Repository / HTTP)
- awesome-nodejs - flashheart - A fully-featured Node.js REST client built for ease-of-use and resilience - ★ 88 (HTTP)
- awesome-node - flashheart - REST client. (Packages / HTTP)
- awesome-nodejs-cn - flashheart - REST 客户端. (目录 / HTTP)
README
# flashheart
* This repository is deprecated and no longer maintained. Please consider using another library. *
[![NPM downloads](https://img.shields.io/npm/dm/flashheart.svg?style=flat)](https://npmjs.org/package/flashheart)
[![Build Status](https://travis-ci.org/bbc/flashheart.svg?branch=master)](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
```