The developers of the Bun JavaScript runtime have released Bun Shell, a new experimental embedded language and interpreter in Bun that lets you run cross-platform shell scripts in JavaScript and TypeScript.
Bun is a modern JavaScript runtime aiming at similar uses to Node or Deno. The developers describe it as a fast, all-in-one toolkit for running, building, testing, and debugging JavaScript and TypeScript, from a single file to a full-stack application.
[画像:bun]
Bun was designed to be a drop-in replacement for your current JavaScript and TypeScript apps or scripts, and the new tool is designed to make it simpler to execute shell scripts. The developers point out that while shells such as bash and sh have been around for decades, they don't work well in JavaScript because each operating system has a slightly different shell with its own syntax and commands, and the fact that even the same command can have different flags and behaviors.
Currently, this is overcome by polyfilling missing commands with JavaScript implementations. The new Bun shell aims to overcome all these problems by providing a new experimental embedded language and interpreter that can be used to run cross-platform shell scripts in JavaScript and TypeScript.
The shell scripts can include JavaScript variables, and all template variables are escaped for security. Stdout can be redirected to buffers or to a file, or pipes to another command. You can use Response as stdin, and built in commands like cd, echo and rm are available:
The team says the tool works on Windows, macOS, and Linux, and many common commands and features such as globbing, environment variables, redirection and piping have been implemented.
The alpha version of the Bun Shell is available now.
[画像:bun]
More Information
Related Articles
Bun 1.0 Released With Experimental Windows Version
Bun JavaScript Runtime Adds Runtime Plugin API
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Exploring The Microsoft Agent Framework
30/10/2025
Microsoft has merged Semantic Kernel and AutoGen to create the Agent Framework, stirring the AI Agent waters.
Eclipse Foundation Adds Agentic Functionality To Eclipse LMOS
28/10/2025
The Eclipse Foundation has added Agent Definition Language (ADL) functionality to the Eclipse LMOS (Language Model Operating System) project.
- Edera Open Sources Sprout
- The Fuss About Fil-C...
- AI Improves Devs Skills, Enhances Their Roles
- Mico - A Personality For Copilot
- The Pico Gets Zephyr And Rust Support
- What Does JetBrains Survey Tell Us About AI
- Apache Grails 7.0 Released
- Scouting America Launches AI And Cybersecurity Badges
- Europe Gets Its Own LLM
- Cursor 2 Enables Multi-Agent Working
- XAML.io 0.5 Adds Multi-File Project Editing
- Next.js 16 Adds Cache Components
- Robot Army Video As Robots Shipped En Masse
Comments
or email your comment to: comments@i-programmer.info