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.3.6 to 0.3.7

10

cli.js

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

try {
var pretty = beautify[config.type](code, config);
var fileType = getOutputType(outfile, config.type);
var pretty = beautify[fileType](code, config);

@@ -280,2 +281,9 @@ // ensure newline at end of beautified output

function getOutputType(outfile, configType) {
if (outfile && /\.(js|css|html)$/.test(outfile)) {
return outfile.split('.').pop();
}
return configType;
}
function getScriptName() {

@@ -282,0 +290,0 @@ return path.basename(process.argv[1]);

2

package.json
{
"name": "js-beautify",
"version": "0.3.6",
"version": "0.3.7",
"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