wat-cli
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    wat-cli

    run .wat files from the command line

    🔧 Install · 🧩 Example · 📜 API docs · 🔥 Releases · 💪🏼 Contribute · 🖐️ Help


    Install

    $ npm i wat-cli -g

    CLI

    Usage: wat [options] <file> -- [...args]
    
                         <file>  The .wat file to run
                   -- [...args]  The arguments to pass to the function
    
       -n, --name=...            The exported function name to use (default: "main")
    
    Examples:
      # Runs my-app.wat
      wat my-app.wat
    
      # Runs export `add` with arguments `(1,2)`
      wat my-app.wat -n add -- 1 2
    

    API

    Table of Contents

    run

    src/index.ts:34-46

    Runs a function in a .wat file with the given arguments.

    Parameters

    • options Options

      • options.file The .wat file to run
      • options.args The arguments to pass to the function
      • options.name The exported function name to use

    Contribute

    Fork or edit and submit a PR.

    All contributions are welcome!

    License

    MIT © 2021 stagas

    Install

    npm i wat-cli

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    20.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • stagas