js-beautify-html配置,js-beautify

本文介绍了js-beautify工具的用途,它可以用来美化和格式化JavaScript、HTML和CSS代码。该工具支持在浏览器、Node.js和Python环境中使用,并提供了丰富的配置选项,包括缩进大小、换行符类型等。用户可以通过命令行、Web界面或直接在网页中使用js-beautify。此外,文章还提到了贡献者的需求以及如何参与项目开发。
摘要由CSDN通过智能技术生成

beautifier.io for node

JS Beautifier

beautify-web.js-beautify

jsbeautifier.svg

js-beautify.svg

js-beautify.svg

next.svg

Join%20Chat.svg

js_beautifier.svg?style=social&label=Follow

f42e3c381743e787ab92dcf847d018d9.pngjs-beautify.svg

This little beautifier will reformat and re-indent bookmarklets, ugly

JavaScript, unpack scripts packed by Dean Edward’s popular packer,

as well as partly deobfuscate scripts processed by the npm package

javascript-obfuscator.

Open beautifier.io to try it out. Options are available via the UI.

Contributors Needed

I'm putting this front and center above because existing owners have very limited time to work on this project currently.

This is a popular project and widely used but it desperately needs contributors who have time to commit to fixing both

customer facing bugs and underlying problems with the internal design and implementation.

If you are interested, please take a look at the CONTRIBUTING.md then fix an issue marked with the "Good first issue" label and submit a PR. Repeat as often as possible. Thanks!

Installation

You can install the beautifier for node.js or python.

Node.js JavaScript

You may install the NPM package js-beautify. When installed globally, it provides an executable js-beautify script. As with the Python script, the beautified result is sent to stdout unless otherwise configured.

$ npm -g install js-beautify

$ js-beautify foo.js

You can also use js-beautify as a node library (install locally, the npm default):

$ npm install js-beautify

Node.js JavaScript (vNext)

The above install the latest stable release. To install beta or RC versions:

$ npm install js-beautify@next

Web Library

The beautifier can be added on your page as web library.

JS Beautifier is hosted on two CDN services: cdnjs and rawgit.

To pull the latest version from one of these services include one set of the script tags below in your document:

Older versions are available by changing the version number.

Disclaimer: These are free services, so there are no uptime or support guarantees.

Python

To install the Python version of the beautifier:

$ pip install jsbeautifier

Unlike the JavaScript version, the Python version can only reformat JavaScript. It does not work against HTM

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值