JavaScript for shell scripting?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- electron, javascript, node.js
Research direction
No repository files, tests, or implementation entry point are named. Start by reviewing the linked gist and the MDN JavaScript shells page, then define the runtime scope and how synchronous system calls would work; done would require an agreed implementation plan for the proposed JavaScript shell.
Written by the indexing model from the issue text.
Description
Has anyone done a JavaScript implementation system calls are synchronous? I'd like to use JavaScript the way other people use shell scripts.
Here's an example of the kind of code I routinely write as part of my development process. This script runs whenever I save one of my Node projects, and copies the public files to the place where my GitHub repo lives. It's not written in JavaScript, but I'd like to create a system where it could be.
I like having a full programming language, with variables, structures and arrays, persistent data, and all the flow control syntax of an Algol-like language. This is a situation where the efficiencies of async is not appropriate, makes things far too complex for system scripting applications.
I did some searching, found this page of JavaScript shells on MDN. Can't tell which of them might be an answer. I have a feeling that it's not going to be based on V8.
For people who are familiar with Frontier, a system scripting environment I developed in the 80s and 90s, I would like to do something like that, but in JavaScript, possibly running in an Electron shell. I know it would be weird to have another JavaScript interpreter running inside Electron, but I've seen weirder things.
PS: Though I'm sure no one will read this far -- the answer is not promises, or async functions in ES6. I want much much more simplicity in the scripts.
- Dominant language
- HTML
- Stars
- 134
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from scripting/Scripting-News
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
scripting/Scripting-News#353 · 6 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
scripting/Scripting-News#332 · 25 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
scripting/Scripting-News#362 ·
-
Matt is moved aside Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
scripting/Scripting-News#361 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
scripting/Scripting-News#360 · 1 comment · 1 reaction ·
All issues in scripting/Scripting-News
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qgis/QGIS-Documentation#11275 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
milvus-io/birdwatcher#545 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·