@karmaniverous/chain-replace

0.1.5 • Public • Published

chain-replace

To install:

npm install @karmaniverous/chain-replace

To import:

import { chainReplace } from '@karmaniverous/chain-replace`;

See tests for examples of usage!

API Documentation

chainReplace(input, [replacements]) ⇒ string

Apply a chain of replacements to a string.

Kind: global function
Returns: string - String result of chained replacements.

Param Type Description
input string Input string.
[replacements] Array.<Array.<(string|Object), string>> Replacements array of [pattern: string|RegExp, replacement: string].

See more great templates and other tools on my GitHub Profile!

Readme

Keywords

none

Package Sidebar

Install

npm i @karmaniverous/chain-replace

Weekly Downloads

1

Version

0.1.5

License

BSD-3-Clause

Unpacked Size

5.81 kB

Total Files

8

Last publish

Collaborators

  • karmaniverous