Convert bash scripts(.sh files) to javascript files

See original GitHub issue

Currently, 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sastava007commented, Mar 3, 2020

Thanks for your interest, @apshada. I have almost completed it, and will push by tonight.

1reaction
manjots1607commented, Feb 25, 2020

@shreys7 I also want to work on this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found