package.json文件上有任何文档吗?

时间:2021-03-22 07:22:01

Here's an instance of the package.json file that express.js generates

这是express.js生成的package.json文件的一个实例

{
    "name": "packagename",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
        "express": "2.5.5",
        "stylus": "0.22.2"
    }
}

It's fairly obvious that I can add packages to the dependencies object. However I have no idea what "private": true means. Nor do I know what syntax I can use in the dependencies value fields. I've Googled for quite a while without discovering anything.

很明显,我可以将包添加到依赖项对象。但是我不知道“私人”是什么:真实的意思。我也不知道我可以在依赖项值字段中使用什么语法。我用谷歌搜索了一段时间而没有发现任何东西。

What I'm wondering is pretty much if a complete summary of all settings that the package.json file can contain exists, as I could not find one. I haven't checked man since I'm on a windows PC.

我想知道的是,如果package.json文件可以包含的所有设置的完整摘要存在,因为我找不到。因为我在Windows PC上,所以我没有检查过男人。

Thanks

谢谢

4 个解决方案

#1


26  

You're looking for the output of npm help json. It is available in Markdown format on NPM's GitHub project.

你正在寻找npm help json的输出。它在NPM的GitHub项目中以Markdown格式提供。

Also check out this interactive guide:

另请参阅此交互式指南:

package.json文件上有任何文档吗?

#2


24  

Besides the official guide for package.json from NPM, the guys from Nodejitsu made a nice cheatsheet for it: http://package.json.nodejitsu.com/

除了来自NPM的package.json的官方指南之外,来自Nodejitsu的人们为它做了一个很好的备忘单:http://package.json.nodejitsu.com/

#3


1  

I've found this very useful...

我发现这非常有用......

https://npmjs.org/doc/json.html

https://npmjs.org/doc/json.html

#4


1  

A package.json cheatsheet. The most beautiful documentation that I could find for package.json.

一个package.json备忘单。我可以找到package.json最美的文档。

#1


26  

You're looking for the output of npm help json. It is available in Markdown format on NPM's GitHub project.

你正在寻找npm help json的输出。它在NPM的GitHub项目中以Markdown格式提供。

Also check out this interactive guide:

另请参阅此交互式指南:

package.json文件上有任何文档吗?

#2


24  

Besides the official guide for package.json from NPM, the guys from Nodejitsu made a nice cheatsheet for it: http://package.json.nodejitsu.com/

除了来自NPM的package.json的官方指南之外,来自Nodejitsu的人们为它做了一个很好的备忘单:http://package.json.nodejitsu.com/

#3


1  

I've found this very useful...

我发现这非常有用......

https://npmjs.org/doc/json.html

https://npmjs.org/doc/json.html

#4


1  

A package.json cheatsheet. The most beautiful documentation that I could find for package.json.

一个package.json备忘单。我可以找到package.json最美的文档。