table-parser-base is a lightweight JavaScript utility library designed to facilitate the transformation of tabular data structures. Primarily, it offers functions to convert between an `ArrayTable` format (an object with separate `headers` and `rows` arrays) and an `ObjectTable` format (an array of objects, where each object represents a row). Currently at version 0.0.5, the package is in a very early stage of development, implying an ad-hoc release cadence without a fixed schedule and potential for rapid iteration on its API. Its core differentiation lies in providing simple, focused, and stream-capable utilities for these specific table data model conversions, often serving as foundational components for broader data parsing or manipulation pipelines. It emphasizes an asynchronous, iterable approach for processing object tables, which is suitable for potentially large datasets.
npm install table-parser-baseVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import and use `createObjectTable` to transform an array-based table structure into an iterable object-based table, logging each row.
Always review the package's changelog or GitHub repository for breaking changes between versions. It is recommended to pin exact versions (`0.0.x`) in your `package.json` to avoid unexpected updates.
Ensure your project is configured for ES Modules by setting `"type": "module"` in your `package.json` or by using `.mjs` file extensions. Use `import` statements exclusively.
Thoroughly test your application when upgrading `table-parser-base` to any new version, even minor ones. Be prepared for potential refactoring if API changes are introduced.
Configure your project to use ES Modules by adding `"type": "module"` to your `package.json` file, or ensure the file containing the import is named with a `.mjs` extension. Alternatively, run Node.js with `--input-type=module`.
Verify that `import { createObjectTable } from 'table-parser-base'` is correctly written. If using dynamic imports, ensure it's `const { createObjectTable } = await import('table-parser-base')` within an `async` function or at the top level of an ES Module.No dependency data recorded yet.