# @frctl/internals

> Core source/parser/api classes for Fractal.

Latest version **0.4.2** (published 2017-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @frctl/internals
pnpm add @frctl/internals
yarn add @frctl/internals
bun add @frctl/internals
```

## 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.4.2 |
| Published | 2017-04-27 |
| First published | 2017-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | allmarkedup, dkhuntrods |

## Links

- npm: https://www.npmjs.com/package/@frctl/internals
- Repository: https://github.com/frctl/internals
- Issues: https://github.com/frctl/internals/issues
- npm.io page: https://npm.io/package/@frctl/internals

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.7
- [async-done](https://npm.io/package/async-done.md) ^1.2.2
- [check-types](https://npm.io/package/check-types.md) ^7.1.5
- [@frctl/utils](https://npm.io/package/@frctl/utils.md) ^0.4.0

## Recent versions

- 0.4.2 (latest) — 2017-04-27
- 0.4.1 — 2017-04-03
- 0.4.0 — 2017-03-06
- 0.3.2 — 2017-03-02
- 0.3.1 — 2017-03-01
- 0.3.0 — 2017-03-01
- 0.2.0 — 2017-02-27
- 0.1.0 — 2017-02-24

## README

# Internals

Core parser and api builder classes for Fractal.

[![Build Status](https://img.shields.io/travis/frctl/internals/master.svg?style=flat-square)](https://travis-ci.org/frctl/internals)
[![NPM Version](https://img.shields.io/npm/v/@frctl/internals.svg?style=flat-square)](https://www.npmjs.com/package/@frctl/internals)

## Installation

```
npm i @frctl/internals
```

### Parser

Stateless plugin-based data processor.

```js
const Parser = require('@frctl/internals/parser');

const myParser = new Parser();

myParser.addPlugin((data, done) => {
  //... manipulate objects in data array
  done();
});

myParser.process([/* input data */], function(err, output){
  //... do stuff with output
});
```

## ApiBuilder

Programmatic API builder.

```js
const ApiBuilder = require('@frctl/internals/api');

const api = new ApiBuilder();

api.addMethod('logAllData', function(){
  console.log(this.data);
});

const myApi = api.generate({
  data: { /* data object */ }
});

myApi.logAllData();

```

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