Skip to content

anatol-grabowski/include-exclude-match

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

include-exclude-match

Verify that a string matches one of include-regexps and doesn't match any of exclude-regexps

Usage

match(value, include, exclude)

const match = require('include-exclude-match')
match('banana', [/.*/], [/apple/, /orange/]) // true
match('caterpilar', [/cat/, /dog/], [/caterpilar/]) // false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published