# pipe-services

> This module provides a service library that can be used by react projects using the node module pipe-automater.

Latest version **0.1.1** (published 2019-11-28) · 0 weekly downloads

## Install

```sh
npm install pipe-services
pnpm add pipe-services
yarn add pipe-services
bun add pipe-services
```

## 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.1.1 |
| Published | 2019-11-28 |
| First published | 2018-11-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 45.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pipe-modules |

## Links

- npm: https://www.npmjs.com/package/pipe-services
- npm.io page: https://npm.io/package/pipe-services

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^16.5.2
- [fbemitter](https://npm.io/package/fbemitter.md) ^2.1.1
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.1.1

## Recent versions

- 0.1.1 (latest) — 2019-11-28
- 0.0.18 — 2019-02-28
- 0.0.17 — 2019-02-22
- 0.0.16 — 2019-02-21
- 0.0.15 — 2019-02-15
- 0.0.12 — 2018-12-17
- 0.0.11 — 2018-12-17
- 0.0.10 — 2018-12-17
- 0.0.9 — 2018-12-14
- 0.0.8 — 2018-12-14
- 0.0.7 — 2018-12-13
- 0.0.6 — 2018-12-13
- 0.0.5 — 2018-12-06
- 0.0.4 — 2018-12-04
- 0.0.3 — 2018-12-04
- … 2 more at https://npm.io/package/pipe-services/versions

## README

# pipe-services

This module provides a service library that can be used by react projects using the node module pipe-automater.


## Get started
1. Create an app with pipe-automater
2. `$ npm install pipe-services`
3. Use services when needed


## Usage

### I18n
Import and initialize i18n service with the .i18n.json file you want to use. 
```js
import { I18n } from 'pipe-services';
import i18File from './YourFileName.i18n.json';
const i18n = new I18n(i18nFile);

// Get translation of string with give id in the current system language
console.log(i18n.translate('hello'));
// Get translation with giving an option array to substitute each variable in {} included in the string 
console.log(i18n.translate('hello', ['planet']));
```

### Hoc
Higher order components for components, modules and views.
They are also used when running `$ npm run add` inside the template

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