anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.24k stars 51 forks source link

BrowserList object is ignored #89

Closed ffoodd closed 5 years ago

ffoodd commented 6 years ago

I'm currently trying to use DoIUse piped in a Gulp task, this way:

gulp.task('compat', function() {
  fs.createReadStream(test.css)
    .pipe(doiuse(['Firefox ESR']))
    .on('data', function(usageInfo) {
       console.log(usageInfo.message)
     })
});

But whatever I give to the browserList object, it's ignored.

And that makes DoIUse very, very, very wordy.

Am I missing something?

budarin commented 6 years ago

I have this bug too #70

pkuczynski commented 5 years ago

@ffoodd you would have to run it like this:

doiuse({browsers: ['Firefox ESR']})