regex-merge

    1.0.1 • Public • Published

    regex-merge

    Smartly merge multiple regex

    Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener

    Getting Started

    $ npm install --save-dev regex-merge
    

    Basic Setup

    const regexMerge = require('regex-merge');
    
    merge(/a/, /b/, /c/);
    // => /abc/
    
    merge(/^a$/, /^b$/, /^c$/);
    // => /^abc$/
    
    merge('$', /^b$/);
    // => /^\$b$/

    For additional use cases please see tests.

    Install

    npm i regex-merge

    DownloadsWeekly Downloads

    54

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • simlu