New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dron-jsbeautifier

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dron-jsbeautifier

Fast beautify target file

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Beautify javascript file

Install

npm install dron-jsbeautifier -g

Usage from CLI

For fast beautify file:

dron jsbeautifier index.js

The module uses a library js-beautifier. Read js-beautifier documentation for advanced CLI options.

Usage from API

You can use dron-jsbeautifier module from another Dron module like that:

function createAndBeautifyFile(content) {
	return function() {
		this.touch('index.js').write(content);
		return this.run('jsbeautifier', {
			file: this.touch('index.js').fullname
		}).then(function() {
			return true;
		});
	}
}

Author

Vladimir Kalmykov vladimirmorulus@gmail.com

Keywords

FAQs

Package last updated on 27 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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