1.0.5 • Published 5 years ago

regex-combine-or v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

regex-combine-or

travis NPM Downloads node License MIT

Combines an array of regexes into a single regex using or operator |.

Usage

const { regexCombineOr } = require('regex-combine-or');

let regex = regexCombineOr(/node_modules/, /bower_components/);

console.log(regex)// /(node_modules)|(bower_components)/

License

MIT © Nivrith Mandayam Gomatam