https://github.com/rohmanhm/vaper
💨 1kb Value Replacer any type recursively
https://github.com/rohmanhm/vaper
replacer vaper
Last synced: 10 months ago
JSON representation
💨 1kb Value Replacer any type recursively
- Host: GitHub
- URL: https://github.com/rohmanhm/vaper
- Owner: rohmanhm
- License: mit
- Created: 2017-04-21T22:17:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-20T18:20:44.000Z (over 6 years ago)
- Last Synced: 2025-06-04T03:19:01.876Z (about 1 year ago)
- Topics: replacer, vaper
- Language: JavaScript
- Homepage:
- Size: 768 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💨 Vaper
[](https://greenkeeper.io/)
[](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)