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

js-beautify

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-beautify - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

17

cli.js

@@ -68,2 +68,8 @@ #!/usr/bin/env node

function onOutputError(err) {
if (err.code === 'EACCES') {
console.error(err.path + " is not writable. Skipping!");
}
}
argv._.forEach(function (filepath) {

@@ -100,2 +106,5 @@ var data = '',

});
// catch possible errors
output.on('error', onOutputError);
} else {

@@ -108,8 +117,10 @@ output = process.stdout;

output.write(pretty);
if (output.writable) {
output.write(pretty);
if (config.outfile) {
output.end();
if (config.outfile) {
output.end();
}
}
});
});

2

package.json
{
"name": "js-beautify",
"version": "0.2.1",
"version": "0.2.2",
"description": "jsbeautifier.org for node",

@@ -5,0 +5,0 @@ "main": "beautify.js",

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