Skip to content

deepsweet/nbx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nbx

npm shellcheck

Execute package binaries.

  • yarn <command> is a mess because it's trying to resolve a target from 3 (three) different places: yarn internal commands, npm scripts and ./node_modules/.bin/
  • npx <command> is doing too much, like checking in $PATH or autoinstalling a package if it's not found
  • ./node_modules/.bin/ in $PATH is very implicit and even wider guess than yarn <command>
  • shell aliases/functions are nice but not installable/shareable (?)
  • ./node_modules/.bin/<command> every time is just too verbose

Install

$ yarn global add nbx
# or
$ npm install --global nbx

Usage

$ nbx
One of the following binary names is required:
#
$ nbx webpack --help

Windows?

It probably just works if you are using that native "Linux in Windows" thing, nbx is just an extremely primitive Bourne Shell (or whatever compatible /bin/sh is) script.