कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

bun-runtime

rabin-thami द्वारा

CLI Utilities
1.7kclawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Bun runtime capabilities for filesystem, process.

विवरण

यह स्किल क्या करती है

Exposes Bun's native runtime APIs for filesystem, process, and network operations through shell scripts. Covers file reads and writes via Bun.file() and Bun.write(), pattern-based file globbing with Bun.glob(), shell command execution, and HTTP requests using Bun's native fetch.

Bun's native file and network APIs offer better I/O performance than Node.js equivalents, making it faster for file-heavy or network-heavy automation tasks.

इसे कब इस्तेमाल करें

  • Reading a config file in a Bun-based project
  • Writing generated content to disk with auto-created directories
  • Finding all .json files in a directory using a glob pattern
  • Running a shell command and capturing its output
  • Fetching data from a REST API endpoint

उदाहरण वर्कफ़्लो

इनपुट

User asks: Read the contents of /tmp/config.json

एजेंट
  1. 1

    Calls bun-fs.sh with the read subcommand and /tmp/config.json as the path

  2. 2

    Script invokes Bun.file() internally and returns a JSON object with the file contents

  3. 3

    Agent extracts the content field from the response

  4. 4

    Returns the file contents to the user

आउटपुट

Contents of /tmp/config.json returned as a string

आवश्यकताएँ

  • Bun runtime installed (bun.sh)

इंस्टॉलेशन

clawhub install rabin-thami/bun-runtime

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक