A high performance library for converting flat data (e.g., SQL query result rows) into nested object trees. Version 1.1.1. The tree structure is defined by column naming conventions: separator, collection, and key symbols. It supports multicolumn primary keys, pruning, custom model injection, aliasing, and pluralization detection. Key differentiator: minimal configuration for complex nesting, with sub-millisecond performance for thousands of rows.
npm install treemNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Convert flat movie data with actor arrays into nested object tree using treem.
Use const Treem = require('treem').default; or switch to ESM.Pass custom symbols: new Treem({ symbols: { collection: '~' } })Set prune: false or customize prune function.
Use import Treem from 'treem' (default import).
Run npm install treem and verify package.json.
No dependency data recorded yet.