# frontflesh-service

> Base class to create service

Latest version **0.0.4** (published 2015-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install frontflesh-service
pnpm add frontflesh-service
yarn add frontflesh-service
bun add frontflesh-service
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-12-23 |
| First published | 2015-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kelgors |
| Maintainers | kelgors |
| Keywords | frontflesh, service, core |

## Links

- npm: https://www.npmjs.com/package/frontflesh-service
- Repository: https://github.com/Kelgors/frontflesh/tree/master/packages/frontflesh-service
- npm.io page: https://npm.io/package/frontflesh-service

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2015-12-23
- 0.0.3 — 2015-12-23
- 0.0.2 — 2015-12-23
- 0.0.1 — 2015-12-23

## README

## frontflesh-service

### Install

```
$ npm install frontflesh-service
```

## Usage

```javascript
import Service from 'frontflesh/service/Service';

class HttpService extends Service {
  fetch(fetchOptions = {}) {
    const promise = new Promise(() => {
      // (...)
    });
    // (...)
    return promise;
  }
}

// use the singleton (inherited by the Service class)
HttpService.get().fetch({ url: 'http://www.google.fr', headers: { 'Content-Type': 'text/html; charset=utf-8' } })
  .then(function () {
    // (...)
  });
// or if you need something more specific
let myService = new HttpService({ 'cache-capacity': 1200 });
myService.fetch({ url: 'http://www.google.fr', headers: { 'Content-Type': 'text/html; charset=utf-8' } })
  .then(function () {
    // (...)
  });
```

---
_Source: https://npm.io/package/frontflesh-service · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
