Convert bash scripts(.sh files) to javascript files
See original GitHub issueCurrently, the following files present inside npm folder are bash scripts
- ci-requirements.sh
- package.sh
- test.sh
- zip.sh
Change these bash scripts to javascript files, so that it becomes platform agnostic, i.e. works well on Windows, Linux or macOS. This can be achieved using the node’s shelljs module.
See deepinstall.js file present in npm folder for reference.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Write your shell scripts in JavaScript, via Node.js - 2ality
Running the script If your shell script is called myscript. js, you run it as follows: node myscript.
Read more >A Bash Script With Node.JS - Medium
I created a node script recently to automate one workflow that I do repeatedly. Every time I create a new JavaScript project, I'd...
Read more >Node.js: writing shell scripts using modern JavaScript instead ...
After several iterations and debugging, we have next (as utils.js file):. With that, shell commands can be executed as simple as: await exec ......
Read more >Converting a shell script to javascript using node js
You can use the plist package to generate/update your plist file. Here is the general flow (granted, you have only one .plist file):...
Read more >Writing JS-based Bash scripts with zx - LogRocket Blog
Every zx shell script file has .mjs as the extension. All built-in functions and wrappers for third-party APIs are pre-imported. Therefore, you ...
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 Free
Top 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
Thanks for your interest, @apshada. I have almost completed it, and will push by tonight.
@shreys7 I also want to work on this issue.