Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@pelevesque/substitute-chars

0.0.2 • Public • Published

Build Status Coverage Status JavaScript Style Guide

substitute-chars

Substitutes chars in a string.

Node Repository

https://www.npmjs.com/package/@pelevesque/substitute-chars

Installation

npm install @pelevesque/substitute-chars

Tests

Standard Style & Unit Tests

npm test

Unit Tests & Coverage

npm run cover

Usage

const substituteChars = require('@pelevesque/substitute-chars')
const str = 'abbcabcc'
const substitutions = [
  ['a', '1'],
  ['b', '2'],
  ['c', '3']
]
const result = substituteChars(str, substitutions)
// result === '12231233'

install

npm i @pelevesque/substitute-chars

Downloadsweekly downloads

1

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability