Make it easier to use inside npm script
See original GitHub issueRight now I need to do this:
"scripts": {
"ls": "node -e \"console.log(require('cash')('ls -l')); process.exit();\""
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Mastering NPM Scripts
NPM Scripts are a set of built-in and custom scripts defined in the package.json file. Their goal is to provide a simple way...
Read more >How to have better NPM Scripts - Raul Melo
How to use the package scripty to help you have more maintainable and more powerful npm scripts.
Read more >Using Npm Scripts as a Build Tool in 2022
In this article, we'll look at how to use project specific npm build scripts as a build tool and task runner, instead of...
Read more >Helpers and tips for npm run scripts - Michael Kühnel
You can easily run scripts using npm by adding them to the "scripts" field in package.json and run them with npm run <script-name>...
Read more >Creating an Npm-Only Build Step for JavaScript
Npm scripts are not quite as plug-and-play as Gulp or Grunt. Tutorials for the typical use cases make the entrance into a build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perhaps we could implement the
-c
option. From Bash’s man page:@rofrol Once cash can accept
-c 'input'
(#75), then you can simply putscript-shell = cash
inside.npmrc
and it should just work.