Skip to content

v3.1.0

Compare
Choose a tag to compare
@amio amio released this 28 Mar 15:49
· 15 commits to master since this release

Added

nls deps to list dependencies (deps, devDeps, optionalDeps are in different color)

$ nls deps

  dependencies in /Users/xilo/git/nls/package.json

⁣  columnify ⁣       v1.5.4 ⁣   MIT ⁣ https://github.com/timoxley/columnify ⁣       
⁣  kleur ⁣           v3.0.3 ⁣   MIT ⁣ https://github.com/lukeed/kleur#readme ⁣      
⁣  marked ⁣          v0.8.2 ⁣   MIT ⁣ https://marked.js.org ⁣                       
⁣  marked-terminal ⁣ v4.0.0 ⁣   MIT ⁣ https://github.com/mikaelbr/marked-terminal ⁣ 
⁣  mri ⁣             v1.1.5 ⁣   MIT ⁣ https://github.com/lukeed/mri#readme ⁣        
⁣  npm-why ⁣         v1.1.9 ⁣   MIT ⁣ https://github.com/amio/npm-why#readme ⁣      
⁣  yarn-why ⁣        v0.3.2 ⁣   MIT ⁣ https://github.com/amio/yarn-why#readme ⁣     
⁣  execa ⁣           v4.0.0 ⁣   MIT ⁣ https://github.com/sindresorhus/execa#readme ⁣
⁣  standard ⁣        v14.3.3 ⁣  MIT ⁣ https://standardjs.com ⁣                      
⁣  tap ⁣             v14.10.7 ⁣ ISC ⁣ http://www.node-tap.org

nls view to extract properties from package.json

or nls v for short, returns version if no more argument.

$ nls view engines.node
>=10

$ nls view version
3.1.0

$ nls v
3.1.0

Suitable for use with linux pipes

  • docker build . -t image:$(nls v)
  • nls v | xargs -I{} echo docker build . -t image:{}

Every command has a shortcut

  • nls d equivalent to nls deps
  • nls v equivalent to nls view
  • nls r equivalent to nls read
  • nls w equivalent to nls why

v3.0.1...v3.1.0