30

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

{ "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.

Thanks

4 Answers 4

26

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

Also check out this interactive guide:

SShot

Sign up to request clarification or add additional context in comments.

Comments

25

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

Comments

1

I've found this very useful...

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

Comments

1

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.