# vaper

> Value replacer any type

Latest version **1.0.1** (published 2019-02-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-02-24 |
| First published | 2017-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 52.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | MH Rohman Masyhar |
| Maintainers | rohmanhm |

## Links

- npm: https://www.npmjs.com/package/vaper
- Repository: https://github.com/rohmanhm/vaper
- npm.io page: https://npm.io/package/vaper

## Dependencies (2)

- [lodash.isarray](https://npm.io/package/lodash.isarray.md) ^4.0.0
- [lodash.isobject](https://npm.io/package/lodash.isobject.md) ^3.0.2

## Recent versions

- 1.0.1 (latest) — 2019-02-24
- 1.0.1-0 (next) — 2019-02-24
- 1.0.0-0 — 2019-02-15
- 0.0.1 — 2017-04-21

## README

# 💨 Vaper

[![Greenkeeper badge](https://badges.greenkeeper.io/rohmanhm/vaper.svg)](https://greenkeeper.io/)
 [![Build Status](https://travis-ci.org/rohmanhm/vaper.svg?branch=master)](https://travis-ci.org/rohmanhm/vaper)

Convert from `x` value from any type of value to `z` value.

## Install
Using **NPM**
```bash
npm install --save vaper
```
or you may consider using **Yarn**
```bash
yarn add vaper
```

## Usage
```javascript
vaper(defaultValue, newValue)(source)
```

## Example
```javascript
// es6
import vaper from 'vaper';

vaper('foo', 'bar')('foo') // return 'bar'
```

> it also support object and array recursively

## Related

* [Nullfined](https://github.com/rohmanhm/nullfined) - Convert any null value to undefined

## License
MIT © [Roman Masyhar](https://github.com/rohmanhm)

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