Metreeca MIME
    Preparing search index...

    Module @metreeca/mime - v0.1.0

    Content access contracts and shared services.

    Defines the content a job retrieves and parses, keeping the job independent of the media type at hand: a task hands on content described by its media type rather than by the format it happens to carry, and a binding substitutes a stubbed, throttled or recorded implementation for the duration of an execution.

    Important

    Jobs are set up and run with the executor, binder and service locator from @metreeca/gear: this package contributes the content services those primitives bind and resolve, not an execution runtime of its own.

    @metreeca/mime

    npm

    Content access contracts and shared services for @metreeca/mime.

    A consumer sets up a @metreeca/gear executor, binding the content facilities a job relies on to the implementations chosen for the run. The job's tasks then resolve each facility through the locator, handing content on by its media type rather than by the format it happens to carry.

    Binding a different implementation leaves the job unchanged: the same job runs against live sources, against recorded content, or against any custom implementation honouring the same contracts.

    Installation

    npm install @metreeca/gear  # the job executor
    npm install @metreeca/mime # this package
    Important

    Node.js 22 or later is required.

    Warning

    TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json. The legacy "node" resolver is not supported.

    Usage

    Module Description
    @metreeca/mime Content access contracts and shared services

    Support

    • open an issue to report a problem or to suggest a new feature
    • start a discussion to ask a how-to question or to share an idea

    License

    This project is licensed under the Apache 2.0 License – see LICENSE file for details.