bit-string-mask
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    4
  • 1.0.0
    1

Package Sidebar

Install

npm i bit-string-mask

Weekly Downloads

2

Version

1.1.0

License

Apache-2.0

Last publish

Collaborators

  • blakeembrey