https://github.com/ksxnodeapps/package-alt-cson
Use package.cson instead of package.json
https://github.com/ksxnodeapps/package-alt-cson
Last synced: over 1 year ago
JSON representation
Use package.cson instead of package.json
- Host: GitHub
- URL: https://github.com/ksxnodeapps/package-alt-cson
- Owner: ksxnodeapps
- License: mit
- Created: 2017-04-13T13:59:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T12:43:11.000Z (about 8 years ago)
- Last Synced: 2024-04-25T20:20:57.984Z (about 2 years ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# package-alt-cson
Use `package.cson` instead of `package.json`
## Requirements
* Node.js ≥ 6.0.0 and npm
## Installation
```bash
npm install --global package-alt-cson
```
## Command-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
```bash
cnpm [argv]
```
**Example**
```bash
cnpm install --save [package] # Would update package.cson
cnpm install [package] # Won't update package.cson
```
### `npm-cson-preserve`, `cnpm-preserve`
Invoke npm command but preserve `package.cson`
```bash
cnpm-preserve [argv]
```
**Example**
```bash
cnpm-preserve install [package] # Won't update package.cson
cnpm-preserve install --save [package] # Won't update package.cson
```
### Notes
#### `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:
```bash
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.cson
```
## Development
### Requirements
* Node.js ≥ 6.0.0 and npm
* package-alt-cson
### Preparation
```bash
npm install --global package-alt-cson
```
### Test
```bash
cnpm test
```
## License
[MIT License](https://github.com/ksxnodeapps/package-alt-cson/blob/master/LICENSE.md)