Node To Bun

🌐Community
by daleseo · vlatest · Repository

Converts Node.js code to Bun for faster execution and improved compatibility – streamlining your backend development workflow.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add node-to-bun npx -- -y @trustedskills/node-to-bun
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "node-to-bun": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/node-to-bun"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to execute Node.js scripts within a Bun environment. It bridges the gap between existing Node.js projects and the newer Bun runtime, enabling compatibility and leveraging Bun's performance benefits. The skill handles script execution, providing output and error handling for seamless integration into agent workflows.

When to use it

  • Running legacy Node.js scripts: When an agent needs to execute code written for Node.js but you want to utilize the Bun runtime.
  • Testing Bun compatibility: Quickly test if a Node.js package or script works within a Bun environment without significant refactoring.
  • Performance optimization: Migrate parts of a workflow to Bun for improved speed and efficiency while maintaining existing Node.js dependencies.
  • Automated build processes: Integrate Node.js scripts into automated workflows managed by the AI agent, leveraging Bun's faster execution times.

Key capabilities

  • Executes Node.js scripts within a Bun environment.
  • Handles script output and error reporting.
  • Provides compatibility for existing Node.js projects.

Example prompts

  • "Run this Node.js script: console.log('Hello from Bun!')"
  • "Execute the file /path/to/my-node-script.js and show me the output."
  • "Can you run this script and tell me if it produces any errors? [Script content]"

Tips & gotchas

  • Ensure that the Node.js scripts being executed are compatible with Bun's runtime environment. Some native modules might require adjustments or alternatives.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
daleseo
Installs
20

🌐 Community

Passed automated security scans.