简体   繁体   English

Node.js:有什么方法可以美化我的package.json文件?

[英]Nodejs: does any way to beautify my package.json file?

At first, I don't care much about my project's package.json , with the time flow, it become more and more complex and dirty. 起初,我不太在乎项目的package.json ,随着时间的流逝,它变得越来越复杂和肮脏。 it's hard to handle manually. 很难手动处理。

so, is there any plugin or tool to beautify my package.json file? 那么,有没有可以美化我的package.json文件的插件或工具?

The easiest would be to use your editor/IDE JS/JSON formatter. 最简单的方法是使用编辑器/ IDE JS / JSON格式化程序。 For Sublime Text 2/3 that would be https://packagecontrol.io/packages/JsFormat 对于Sublime Text 2/3,它将为https://packagecontrol.io/packages/JsFormat

Alternatively, you can use an online tool like https://jsonformatter.curiousconcept.com/ 或者,您可以使用在线工具,例如https://jsonformatter.curiousconcept.com/

The easiest way to code in JS is by using Visual Studio Code (IDE). JS中最简单的编码方法是使用Visual Studio Code (IDE)。 It has all the formatting tools required to Parse JSON properly, auto indent the code and IntelliSense which help in writing JS easy are already present in it . 它具有正确解析JSON所需的所有格式化工具,自动缩进代码和IntelliSense,这些工具已经帮助您轻松编写JS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM