/which_npm_scripts

Rust cli tool to print npm scripts for any given directory.

Primary LanguageRust

This module is meant to be a semi replacement/improvement for the npm run command without arguments. Its intent is to learn Rust by building a semi-useful tool

Ever wonder what npm scripts are in your package.json file? Well wonder no more! With this handy little script, you can log out just the scritps to the terminal!

This works well with having a bash alias that sends the current working directory as the cli argument. Such as

alias scripts='pwd | ~/which_npm_scripts/target/release/which_npm_scripts'

Then its as simple as

~/some_contrived_app_name $ scripts
{
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
}