Quickly try out npm packages inside a container.
As a developer working with NodeJS you often stumble upon packages you quickly want to try out. Installing these packages on your host system gets it polluted real quick.
try tries to keep your host system clean while testing out npm packages. This CLI tool quickly starts up a Docker container and installs your specified packages, so you can try them out!
You can print the usage by executing
Usage: try [packages] Quickly try out npm packages inside a container Options: -V, --version output the version number -v, --verbose Verbosity value -i, --image [image] The docker image which it should pull from [node] (default: "node") --image-version [version] Specify the node image version [latest] (default: "latest") --silent If the program should not print any log statements -h, --help output usage information
npm install -g try-pkg
To install it from source you need to clone this repository, install the dependencies using
npm and execute the program.
git clone https://github.com/BrunnerLivio/try.git cd try npm install node cli.js
Inspired by timofurrer/try - Thanks buddy :)