# @slicr97/partialize

> Simple input validation

Latest version **1.0.1** (published 2023-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @slicr97/partialize
pnpm add @slicr97/partialize
yarn add @slicr97/partialize
bun add @slicr97/partialize
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-05-27 |
| First published | 2023-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nico Loos |
| Maintainers | slicr97 |

## Links

- npm: https://www.npmjs.com/package/@slicr97/partialize
- Repository: https://github.com/SlicR97/partialize
- Homepage: https://github.com/SlicR97/partialize#readme
- Issues: https://github.com/SlicR97/partialize/issues
- npm.io page: https://npm.io/package/@slicr97/partialize

## Recent versions

- 1.0.1 (latest) — 2023-05-27
- 1.0.0 — 2023-05-25

## README

# Partialize

## Description

Provides a simple function that partializes functions with up to 10 parameters.

## Installation

### Using npm:

```
npm install @slicr97/partialize
```

### Using yarn:

```
yarn add @slicr97/partialize
```

## Usage

To give you an example of how this library works, look at the following code snippet:

```typescript
import { partialize } from '@slicr97/partialize'

const _add = (x: number, y: number) => x + y
const add = partialize(_add)

const result = add(2)(2) // 4
```

## Globalizing

If you want to globalize the `partialize` function, you can do so by adding the following line to your code at the top of your entrypoint:

```typescript
import '@slicr97/partialize/globalize'
```

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