0.0.2 • Published 9 years ago
package-alt-cson v0.0.2
package-alt-cson
Use package.cson instead of package.json
Requirements
- Node.js ≥ 6.0.0 and npm
Installation
npm install --global package-alt-csonCommand-line usage
Replace npm with the following commands
npm-cson, cnpm, npm-cson-update, cnpm-update
Invoke npm command and update package.cson if necessary
cnpm [argv]Example
cnpm install --save [package] # Would update package.cson
cnpm install [package] # Won't update package.csonnpm-cson-preserve, cnpm-preserve
Invoke npm command but preserve package.cson
cnpm-preserve [argv]Example
cnpm-preserve install [package] # Won't update package.cson
cnpm-preserve install --save [package] # Won't update package.csonNotes
cnpm init
This program doesn't read data from stdin therefore cnpm init won't work.
In order to init a "cnpm package", do the following instead:
npm i -g js-cson # CLI to convert json to cson
npm init # Now you have a package.json
js-cson package.json > package.cson # Now you have a package.csonDevelopment
Requirements
Node.js ≥ 6.0.0 and npm
package-alt-cson
Preparation
npm install --global package-alt-csonTest
cnpm test