# undercut

> JavaScript data processing pipelines and utilities

Latest version **0.4.0** (published 2019-10-15) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2019-10-15 |
| First published | 2019-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 61.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Anton Alexandrenok |
| Maintainers | spyke |
| Keywords | array, data, es6, iterable, iteration, iterator, itertools, lazy, linq, lodash, modules, pipeline, underscore, util |

## Links

- npm: https://www.npmjs.com/package/undercut
- Repository: https://github.com/the-spyke/undercut
- Homepage: https://github.com/the-spyke/undercut#readme
- Issues: https://github.com/the-spyke/undercut/issues
- npm.io page: https://npm.io/package/undercut

## 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.4.0 (latest) — 2019-10-15
- 0.3.0 — 2019-07-15
- 0.2.0 — 2019-05-04
- 0.1.1 — 2019-04-24
- 0.1.0 — 2019-04-22

## README

# ✂ undercut ✂

JavaScript data processing pipelines and utilities. Use native Iterators/Generators/Observers like it's 2015 already.

- Based on existing JS protocols and language features
- Balanced API: not too imperative, not too functional
- Easy operation extensibility and composability
- Pure ES Modules with Node 12 loader compliance
- Raw code in packages (compile in place)
- Lazy evaluation when possible
- Tree shaking friendliness
- 90% test coverage
- SemVer

## Installation

```sh
npm install --save undercut
# or
yarn add undercut
```

`undercut` provides raw Stage 4 ECMAScript code in the package, **don't forget** to include its `node_modules` directories into [Babel](https://babeljs.io/) config or another compiler of your choice.

## Usage

Please check [GitHub](https://github.com/the-spyke/undercut) for more detailed readme.

```js
import { pull, filter, map, skip, toArray } from "undercut";

const source = [1, 2, 3, 4, 5, 6, 7];

const result = pull(toArray, [
    skip(2),
    filter(x => x % 3 === 0),
    map(x => x * 2) // Will be executed only 3 times.
], source);

console.log(result); // [8, 10, 14]
```

## License

Licensed under the MIT License, see [LICENSE](LICENSE) for more information.

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