mwildcards
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i mwildcards

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

4.26 kB

Total Files

6

Last publish

Collaborators

  • kezhaofeng