Socket
Socket
Sign inDemoInstall

bit-string-mask

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bit-string-mask

Mask a string using bits from an input number


Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 22 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc