Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# flashheart

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


Flashheart


[![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
```