clii
proposal-hashbang
clii | proposal-hashbang | |
---|---|---|
3 | 8 | |
40 | 133 | |
- | - | |
3.2 | 0.0 | |
about 2 years ago | almost 2 years ago | |
TypeScript | HTML | |
Apache License 2.0 | - |
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.
clii
proposal-hashbang
-
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
What are some alternatives?
yayfetch - ๐ง Node.js multi-platform screenfetch
sh - Python process launching
lisk-sdk - ๐ฉ Lisk software development kit
proposal-symbols-as-weakmap-keys - Permit Symbols as keys in WeakMaps, entries in WeakSets and WeakRefs, and registered in FinalizationRegistries
dpdm - Detect circular dependencies in your TypeScript projects.
proposal-array-find-from-last - Proposal for Array.prototype.findLast and Array.prototype.findLastIndex.
npkill - List any node_modules ๐ฆ dir in your system and how heavy they are. You can then select which ones you want to erase to free up space ๐งน
proposal-object-pick-or-omit - Ergonomic Dynamic Object Restructuring. [Moved to: https://github.com/tc39/proposal-object-pick-or-omit]
Ink - ๐ React for interactive command-line apps
forge-node-app - ๐ ๐ฆ๐ Generate Node.js boilerplate with optional libraries & tools