1.1.0 • Published 7 years ago

bit-string-mask v1.1.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

Bit String Mask

NPM version NPM downloads Build status Test coverage

Mask a string using bits from an input number.

Installation

npm install bit-string-mask --save

Usage

import { mask } from 'bit-string-mask'

mask('test', 0) //=> "test"
mask('test', 1) //=> "Test"
mask('test', 2) //=> "tEst"

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT