Use package.yaml
instead of package.json
- Node.js ≥ 6.0.0 and npm
npm install --global package-alt-yaml
Replace npm
with the following commands
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
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
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
This program works only with package.yaml
,
not package.yml
.
-
Node.js ≥ 6.0.0 and npm
-
package-alt-yaml
npm install --global package-alt-yaml
ynpm test