Ready-made tasks for parsing and serialising content by media type.
@metreeca/mime brings ready-made @metreeca/flow tasks for converting content between the usual interchange formats and the values a pipeline works on: parsing documents into records and serialising results back into documents. The tasks run under the @metreeca/gear job executor, which supplies the shared services they draw on.
Pipelines are server-side workloads targeting Node.js 22 or later, relying on facilities such
as the filesystem, the process environment and fetch. The packages are not intended for the browser.
npm install @metreeca/gear # job executor and shared services
npm install @metreeca/mime-<type> # task package, one per media type
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
Install a task package for each media type the pipeline handles. Task packages are self-contained leaves, each pulling in only the libraries its own media type needs. No package pulls in the @metreeca/gear job executor on its own: install it directly to set up and run a job.
| Package | Description |
|---|---|
| @metreeca/mime-csv | CSV processing tasks |
| @metreeca/mime-json | JSON processing tasks |
| @metreeca/mime-jsonld | JSON-LD processing tasks |
| @metreeca/mime-xml | XML and HTML processing tasks |
Each package documents its own API in its README and API reference; for complete coverage, see the API reference.
This project is licensed under the Apache 2.0 License – see LICENSE file for details.