Skip to content

A very simple wildcard match. just use * and -.

Notifications You must be signed in to change notification settings

Gaubee/mwildcards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mwildcards

very simple. I created this project to configure environment variable parameters in the console. Use simple grammar and stay practical.

example

import Mwildcards from '../mwildcards';
const env_trace = process.env.TRACE || '';
const mw = new Mwildcards(env_trace,{ nocase: true });

/// your code.
mw.isMatch('balabala');
TRACE="module/*,-module/XD" node index.js

doc

* : match Letters, numbers or underscore. ** : match any thing. - : if starts with -, matches will be skip.

About

A very simple wildcard match. just use * and -.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published