Comments (12)
sorry don't know how I missed this!.
Maybe I'm missing something, but why is any of that needed? Couldn't this be achieved by using the main function instead of filter?
micromatch(files, ['*', '!*api*']);
If additional ignore
patterns need to be passed, you can do:
micromatch(files, ['*', '!*api*'], {ignore: ['foo/*', '**/bar']);
from micromatch.
Hmmm. Maybe, I'll review it soon, I think I got it.
Actually, it's not an issue, cuz fs-readdir
is almost the fastest async/stream out there. ASAP I'll add support for globs and filters using micromatch. :)
Cute avatar btw! 👍
from micromatch.
btw why when benchmark ends not close the std? I mean.. I need to CTRL + C to exit from benchmark.
Can you review benchmarked config, is I missing something?
from micromatch.
I need to CTRL + C to exit from benchmark.
really? hmm, honestly I created benchmarked in like 30 min lol. I just needed something fast, but I should revisit since I use it so much.
Maybe, I'll review it soon, I think I got it.
Actually I might be wrong. It depends... I was thinking about it, maybe it would make the most sense if either a) .isMatch()
could take an array of patterns, since that could be used for filtering, or b) we just add multi-pattern functionality like you said... I'll think about it, let me know if you have more suggestions
from micromatch.
really? hmm, honestly I created benchmarked in like 30 min lol. I just needed something fast, but I should revisit since I use it so much.
Yep. idk, but always, maybe I'm in some mistake when implement it, lol.
I just use this
var Suite = require('benchmarked');
var suite = new Suite({
fixtures: 'fixtures/*.js',
add: 'code/*.js',
cwd: __dirname
});
suite.run();
I'll think about it, let me know if you have more suggestions
Agreed. Both are good ideas.
from micromatch.
maybe I'm in some mistake when implement it, lol.
that looks right to me. I think there is a bug.
from micromatch.
Isn't bug label for benchmarked, not here? lol
from micromatch.
lol, that's the problem with off-topic conversations. want to create an issue over there?
from micromatch.
and thanks, I get a little absentminded when I'm working on something.
from micromatch.
want to create an issue over there?
yep yep, no problem, lol, i'll soon
lol, that's the problem with off-topic conversations.
exactly lol
from micromatch.
ok I think I got it. Instead of .filter()
how about .every()
?
from micromatch.
e.g. "every pattern", not files
from micromatch.
Related Issues (20)
- Can't match string with leading dot HOT 3
- extglob Denial of service HOT 4
- Non-filepaths matchs HOT 3
- SyntaxError: Invalid or unexpected token when running from Jest HOT 1
- 'Or' functionality broken (using |)
- Proper docs for windows option??
- Add a way to generate a glob from a file name HOT 1
- Basename breaks matching complex pattern HOT 2
- Will micromatch gradually phase out CJS support instead of abruptly (cf multimatch)? HOT 2
- Documentation incomplete for `scan`
- Alternatives in extglobs not matching correctly? HOT 5
- micromatch('.prettierrc.json', '**/*.json') => false HOT 3
- Image for sponsorships
- [BUG] Vulnerabilities Found in Micromatch and Braces HOT 2
- `micromatch.not` returns nothing if empty pattern list provided
- [BUG] Vulnerabilities Found in Micromatch and Braces HOT 38
- gitIgnore and negation patterns - not following gitIgnore specs HOT 5
- Question: Globstar and trailing slashes
- Inefficient Regular Expression Complexity vulnerability with High severity found HOT 6
- Negation style ignores dot option?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micromatch.