{"id":16226797,"url":"https://github.com/c0bra/terminal-treemap","last_synced_at":"2025-10-04T16:16:39.925Z","repository":{"id":66922142,"uuid":"156893692","full_name":"c0bra/terminal-treemap","owner":"c0bra","description":"Create a treemap (binpacked rectangles in a box) in the terminal","archived":false,"fork":false,"pushed_at":"2019-01-02T22:15:26.000Z","size":18,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T02:56:04.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c0bra.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-09T17:11:48.000Z","updated_at":"2023-09-15T17:35:12.000Z","dependencies_parsed_at":"2023-02-25T16:31:32.177Z","dependency_job_id":null,"html_url":"https://github.com/c0bra/terminal-treemap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fterminal-treemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fterminal-treemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fterminal-treemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fterminal-treemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0bra","download_url":"https://codeload.github.com/c0bra/terminal-treemap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773729,"owners_count":20993633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T12:50:29.958Z","updated_at":"2025-10-04T16:16:34.859Z","avatar_url":"https://github.com/c0bra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terminal-treemap [![Build Status](https://travis-ci.org/c0bra/terminal-treemap.svg?branch=master)](https://travis-ci.org/c0bra/terminal-treemap) [![codecov](https://codecov.io/gh/c0bra/terminal-treemap/badge.svg?branch=master)](https://codecov.io/gh/c0bra/terminal-treemap?branch=master)\n\n\u003e Treemaps in the terminal\n\n## Install\n\n```\n$ npm install --save terminal-treemap\n```\n\n\n## Usage\n\n```js\nconst terminalTreemap = require('terminal-treemap');\n\nconst data = [\n\t{ content: 'Foo\\n250kb', value: 50 },\n\t{ content: 'Bar\\n150kb', value: 25 },\n\t{ content: 'Baz\\n150kb', value: 5 },\n\t{ content: 'Baz\\n150kb', value: 5 },\n];\n\nconst output = terminalTreemap(data);\nconsole.log(output);\n```\n![Example](./example.png)\n\n## API\n\n### terminalTreemap(input)\n\nInput should be an array of objects where each object has a `content` prop and a `value` prop. The value property will be used to ratio the size of the boxes in the terminal.\n\n## Thanks\n\nInspiration from [boxen](https://www.npmjs.com/package/boxen) by [Sindre](https://github.com/sindresorhus/sindresorhus).\n\n\n## License\n\nMIT © [Brian Hann](http://n/A)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Fterminal-treemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0bra%2Fterminal-treemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Fterminal-treemap/lists"}