pipe-processor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

pipe-processor

AudioWorklet that pipes its output to a given message port.

npm i pipe-processor pnpm add pipe-processor yarn add pipe-processor

🥁 Use this template 🥁

Features

  • TypeScript with SWC
  • JSX/TSX out of the box
  • Outputs both CommonJS and ES Modules, ready to publish on npm
  • Automatic dist bundling using bunzee
  • Documentation generation using dokio
  • Isomorphic Node.js and real browser testing incl. coverage and snapshots with utr
  • Examples / Playground using devito
  • Evergreen using pull-configs
  • ESLint
  • dprint
  • Husky

API

# PipeNode

    # constructor(context, options)

      # new PipeNode()

        PipeNode

        # context

          BaseAudioContext

        # options

          AudioWorkletNodeOptions & {

          # port

            MessagePort

          }

# context

    BaseAudioContext

# options

    AudioWorkletNodeOptions & {

    # port

      MessagePort

    }

# rpc

    Rpc

# registeredContexts  =  ...

    Set<BaseAudioContext>

# create(context, options)

    # context

      BaseAudioContext

    # options

      AudioWorkletNodeOptions & {

      # port

        MessagePort

      }

create(context, options)  =>

# register(context)

    # context

      BaseAudioContext

    register(context)  =>

      Promise<void>

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2023 stagas

/pipe-processor/

    Package Sidebar

    Install

    npm i pipe-processor

    Weekly Downloads

    15

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    44.4 kB

    Total Files

    23

    Last publish

    Collaborators

    • stagas