proposal-hashbang
#! for JS (by tc39)
proposal-object-pick-or-omit
Ergonomic Dynamic Object Restructuring. [Moved to: https://github.com/tc39/proposal-object-pick-or-omit] (by tc39-transfer)
proposal-hashbang | proposal-object-pick-or-omit | |
---|---|---|
8 | 2 | |
133 | 50 | |
- | - | |
0.0 | 2.9 | |
almost 2 years ago | almost 2 years ago | |
HTML | HTML | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-hashbang
Posts with mentions or reviews of proposal-hashbang.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-30.
-
Javascript, the GOAT of programming languages that will take over the world in 2024
Before ECMAScript 2023 (ES14), executing a JavaScript file directly from the command line required manually specifying the interpreter path in the first line of the module. This process could vary depending on the operating system and Node.js installation.ES14 standardizes the use of hashbangs (#!) in JavaScript modules, enabling direct execution without the need for explicit interpreter invocation. The hashbang syntax is a simple convention that indicates the interpreter to be used for executing a module. It consists of a shebang (#!) followed by the path to the interpreter and optionally any arguments. For a JavaScript file, the hashbang line typically includes the path to the Node.js executable.
- What's new in ES2023?
-
ES2023 features list!
https://github.com/tc39/proposal-hashbang has some details.
-
JavaScript's New Features: Exploring the Latest Additions to the Language
Hashbang Grammar
- ES2023 candidate source code + spec
-
Updates from the 91st TC39 meeting
Hashbang Grammar: match de-facto usage in some CLI JS hosts that allow for #! Shebangs / Hashbang.
-
cmru is a command runner that allows you to describe commands with javascript.
But if you just wanted to execute it directly then you could use a shebang because everything after the bang is interpreted and not the bang its self. Most js engines allow this in some form. Here is a proposal to standardize it. https://github.com/tc39/proposal-hashbang
- Released Google/zx – tons of DX improvements and more
proposal-object-pick-or-omit
Posts with mentions or reviews of proposal-object-pick-or-omit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-21.
-
Updates from the 91st TC39 meeting
Object pick/omit: Ergonomic Dynamic Object Restructuring.
-
Destructuring and storing the unpacked values in an object
This is known as picking. There's no syntax for this, though some libraries like lodash have a pick function. There have been a few proposals out there to add them natively to JavaScript, like this one, but it doesn't seem like there's much traction for it.
What are some alternatives?
When comparing proposal-hashbang and proposal-object-pick-or-omit you can also consider the following projects:
sh - Python process launching
proposal-symbols-as-weakmap-keys - Permit Symbols as keys in WeakMaps, entries in WeakSets and WeakRefs, and registered in FinalizationRegistries
clii - Easily build a cli app.
proposal-array-find-from-last - Proposal for Array.prototype.findLast and Array.prototype.findLastIndex.