Show Table of Contents
Appendix D. Breakdown of package.json properties
{
"name": "nodejs-rest-http",
"version": "1.1.1",
"author": "Red Hat, Inc.",
"license": "Apache-2.0",
"scripts": {
"test": "tape test/*.js | tap-spec", 1
"lint": "eslint test/*.js app.js bin/*",
"prepare": "nsp check",
"coverage": "nyc npm test",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"ci": "npm run lint && npm run coveralls",
"dependencyCheck": "szero . --ci",
"release": "standard-version",
"openshift": "nodeshift --strictSSL=false --nodeVersion=8.x", 2
"postinstall": "license-reporter report && license-reporter save --xml licenses.xml",
"start": "node ." 3
},
"main": "./bin/www", 4
"repository": {
"type": "git",
"url": "git://github.com/bucharest-gold/nodejs-rest-http.git"
},
"files": [ 5
"package.json",
"app.js",
"public",
"bin",
"LICENSE",
"licenses"
],
"bugs": {
"url": "https://github.com/bucharest-gold/nodejs-rest-http/issues"
},
"homepage": "https://github.com/bucharest-gold/nodejs-rest-http",
"devDependencies": { 6
"coveralls": "^3.0.0",
"nodeshift": "^1.3.0",
"nsp": "~3.1.0",
"nyc": "~11.4.1",
"standard-version": "^4.2.0",
"supertest": "^3.0.0",
"szero": "^1.0.0",
"tap-spec": "~4.1.1",
"tape": "~4.8.0",
"xo": "~0.20.3"
},
"dependencies": { 7
"body-parser": "^1.18.2",
"debug": "^3.1.0",
"express": "^4.16.0",
"license-reporter": "^1.1.3"
}
}
- 1
- A
npmscript for running unit tests. Run withnpm run test. - 2
- A
npmscript for deploying this application to Single-node OpenShift Cluster. Run withnpm run openshift. ThestrictSSLoption allows us to deploy to Single-node OpenShift Cluster instances with self-signed certificates. - 3
- A
npmscript for starting this application. Run withnpm start. - 4
- The primary entrypoint for the application when run with
npm start. - 5
- Specifies the files to be included in the binary that is uploaded to Single-node OpenShift Cluster.
- 6
- A list of development dependencies to be installed from the
npmregistry. These are used for testing and deployment to Single-node OpenShift Cluster. - 7
- A list of dependencies to be installed from the
npmregistry.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.