Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

doiuse

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doiuse - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

=

15

cli.js

@@ -6,3 +6,4 @@ #!/usr/bin/env node

jsonfilter = require('jsonfilter'),
through = require('through2');
through = require('through2'),
browserslist = require('browserslist');

@@ -44,7 +45,10 @@ var formatBrowserName = require('./dist/lib/util').formatBrowserName,

argv.browsers = argv.browsers.split(',').map(function(s){return s.trim();});
// Informational output
if(argv.l) { argv.v = ++argv.verbose; }
if(argv.verbose >= 1) {
browsers = linter.info().browsers
browsers = browserslist(argv.browsers)
console.log('[doiuse] Browsers: ' + browsers.map(function(b) {
b = b.split(' ')
b[0] = formatBrowserName(b[0])

@@ -75,3 +79,2 @@ return b.join(' ')

var browsers = argv.b.split(',').map(function(s){return s.trim();});
var options = {messages: !argv.json};

@@ -92,4 +95,4 @@

argv._.forEach(function(file){
fs.createReadStream()
.pipe(doiuse(browsers, options))
fs.createReadStream(file)
.pipe(doiuse(argv.browsers, options))
.pipe(out);

@@ -99,3 +102,3 @@ });

process.stdin
.pipe(doiuse(browsers, options))
.pipe(doiuse(argv.browsers, options))
.pipe(out);

4

package.json
{
"name": "doiuse",
"version": "0.2.0",
"version": "0.2.1",
"description": "Lint CSS for browser support against caniuse database.",

@@ -47,2 +47,2 @@ "main": "dist/index.js",

}
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc