Git Product home page Git Product logo

Comments (12)

jonschlinkert avatar jonschlinkert commented on June 6, 2024

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.

tunnckoCore avatar tunnckoCore commented on June 6, 2024

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.

tunnckoCore avatar tunnckoCore commented on June 6, 2024

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.

jonschlinkert avatar jonschlinkert commented on June 6, 2024

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.

tunnckoCore avatar tunnckoCore commented on June 6, 2024

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.

jonschlinkert avatar jonschlinkert commented on June 6, 2024

maybe I'm in some mistake when implement it, lol.

that looks right to me. I think there is a bug.

from micromatch.

tunnckoCore avatar tunnckoCore commented on June 6, 2024

Isn't bug label for benchmarked, not here? lol

from micromatch.

jonschlinkert avatar jonschlinkert commented on June 6, 2024

lol, that's the problem with off-topic conversations. want to create an issue over there?

from micromatch.

jonschlinkert avatar jonschlinkert commented on June 6, 2024

and thanks, I get a little absentminded when I'm working on something.

from micromatch.

tunnckoCore avatar tunnckoCore commented on June 6, 2024

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.

jonschlinkert avatar jonschlinkert commented on June 6, 2024

ok I think I got it. Instead of .filter() how about .every()?

from micromatch.

jonschlinkert avatar jonschlinkert commented on June 6, 2024

e.g. "every pattern", not files

from micromatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.