Skip to content

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

Notifications You must be signed in to change notification settings

garretttaco/which_npm_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages