package-alt-yaml
v0.0.7
Published
Use package.yaml instead of package.json
Downloads
15
Maintainers
Readme
package-alt-yaml
Use package.yaml
instead of package.json
Requirements
- Node.js ≥ 6.0.0 and npm
Installation
npm install --global package-alt-yaml
Command-line usage
Replace npm
with the following commands
npm-yaml
, ynpm
, npm-yaml-update
, ynpm-update
Invoke npm command and update package.yaml
if necessary
ynpm [argv]
Example
ynpm install --save [package] # Would update package.yaml
ynpm install [package] # Won't update package.yaml
npm-yaml-preserve
, ynpm-preserve
Invoke npm command but preserve package.yaml
ynpm-preserve [argv]
Example
ynpm-preserve install [package] # Won't update package.yaml
ynpm-preserve install --save [package] # Won't update package.yaml
Notes
ynpm init
This program doesn't read data from stdin therefore ynpm init
won't work.
In order to init a "ynpm package", do the following instead:
npm i -g js-yaml # CLI to convert json to yaml
npm init # Now you have a package.json
js-yaml package.json > package.yaml # Now you have a package.yaml
package.yml
This program works only with package.yaml, not package.yml.
Development
Requirements
Node.js ≥ 6.0.0 and npm
package-alt-yaml
Preparation
npm install --global package-alt-yaml
Test
ynpm test