# immutable-nestable-record

> Record factory that supports nesting of Immutable.js recods and collections

Latest version **0.1.2** (published 2015-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install immutable-nestable-record
pnpm add immutable-nestable-record
yarn add immutable-nestable-record
bun add immutable-nestable-record
```

## 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.2 |
| Published | 2015-09-03 |
| First published | 2015-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Florian Klampfer |
| Maintainers | qwtel |
| Keywords | library-boilerplate-keywords |

## Links

- npm: https://www.npmjs.com/package/immutable-nestable-record
- Repository: https://github.com/qwtel/immutable-nestable-record
- Issues: https://github.com/qwtel/immutable-nestable-record/issues
- npm.io page: https://npm.io/package/immutable-nestable-record

## Recent versions

- 0.1.2 (latest) — 2015-09-03
- 0.1.1 — 2015-09-03
- 0.1.0 — 2015-09-03

## README

Immutable Nestable Record
=========================

Record factory that supports nesting of Immutable.js recods and collections.

```js
const Point = Immutable.Record({x: 0, y: 0}, 'Point');

const Rect = NestableRecord({
  a: null,
  b: null,
}, {
  a: Point,
  b: Point,
}, 'Rect');

Rect({a: {x: 1, y: 1}, b: {x: 2, y: 2}});
// => Rect { "a": Point { "x": 1, "y": 1 }, "b": Point { "x": 2, "y": 2 } }

const PointCloud = NestableRecord({
  points: null,
}, {
  points: [Immutable.Set, Point],
}, 'PointCloud');

PointCloud({points: [{x: 1, y: 1}, {x: 2, y: 2}]});
// => PointCloud { "points": Set { Point { "x": 1, "y": 1 }, Point { "x": 2, "y": 2 } } }
```

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