rohmanhm / vaper

💨 1kb Value Replacer any type recursively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💨 Vaper

Greenkeeper badge Build Status

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

Install

Using NPM

npm install --save vaper

or you may consider using Yarn

yarn add vaper

Usage

vaper(defaultValue, newValue)(source)

Example

// es6
import vaper from 'vaper';

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

it also support object and array recursively

Related

  • Nullfined - Convert any null value to undefined

License

MIT © Roman Masyhar

About

💨 1kb Value Replacer any type recursively

License:MIT License


Languages

Language:JavaScript 60.5%Language:TypeScript 39.5%