# recarve

> minimal invasion for hybrid structure of nested array-object

Latest version **1.0.0** (published 2016-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install recarve
pnpm add recarve
yarn add recarve
bun add recarve
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-27 |
| First published | 2016-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | linuo |
| Maintainers | linuo |
| Keywords | deep, array, object, map, filter, recursive, nested |

## Links

- npm: https://www.npmjs.com/package/recarve
- Repository: https://github.com/stevennuo/recarve
- Homepage: https://github.com/stevennuo/recarve#readme
- Issues: https://github.com/stevennuo/recarve/issues
- npm.io page: https://npm.io/package/recarve

## Dependencies (1)

- [string2tree](https://npm.io/package/string2tree.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2016-04-27

## README

# Recarve

minimal invasion for hybrid structure of nested array-object

[![Build Status](https://travis-ci.org/stevennuo/recarve.svg?branch=master)](https://travis-ci.org/stevennuo/recarve)

## Example
``` javascript
recarve({}, {
    "a.b.c": (c)=> {
        c.d = 1;
        return c
    }
});
// {a: {b: {c: {d: 1}}}}

recarve({a: {b: [{c: true, d: 1}, {c: false, d: 2}]}},{"a.b": (b)=> b.filter((i)=>i.c === true)});
// {a: {b: [{c: true, d: 1}]}}
```

## To begin
* install
``` bash
$ npm install recarve --save
```
* require & use
``` javascript
const recarve = require('recarve')
const obj = recarve([{a: [{b: 1}]}], {'a': (a)=>a.filter((i)=> i.b !== 1)})
```

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