{"id":13432736,"url":"https://github.com/madbence/node-drawille","last_synced_at":"2025-05-15T00:07:20.135Z","repository":{"id":16706294,"uuid":"19463075","full_name":"madbence/node-drawille","owner":"madbence","description":"Drawing in terminal with unicode braille characters","archived":false,"fork":false,"pushed_at":"2022-10-16T21:40:07.000Z","size":571,"stargazers_count":1013,"open_issues_count":1,"forks_count":28,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-13T20:40:51.729Z","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/madbence.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}},"created_at":"2014-05-05T16:43:55.000Z","updated_at":"2025-04-12T00:38:01.000Z","dependencies_parsed_at":"2022-08-25T13:22:55.500Z","dependency_job_id":null,"html_url":"https://github.com/madbence/node-drawille","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madbence%2Fnode-drawille","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madbence%2Fnode-drawille/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madbence%2Fnode-drawille/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madbence%2Fnode-drawille/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madbence","download_url":"https://codeload.github.com/madbence/node-drawille/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249197,"owners_count":22039029,"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-07-31T02:01:15.900Z","updated_at":"2025-05-15T00:07:15.124Z","avatar_url":"https://github.com/madbence.png","language":"JavaScript","readme":"# node-drawille [![Build Status](https://travis-ci.org/madbence/node-drawille.svg)](https://travis-ci.org/madbence/node-drawille)\n\n\u003e drawing in terminal with [unicode braille][] characters. The idea is based on [drawille](https://github.com/asciimoo/drawille) by @asciimoo.\n\n![cube](cube.gif)\n\n## install\n\ninstall the [package](https://npmjs.com/drawille) with `npm`:\n\n```\n$ npm install --save drawille\n```\n\n## usage\n\nSee [examples](examples).\n\nthis module provides a very basic API only, for fancy things, like drawing lines, use another module, like [`bresenham`](https://github.com/madbence/node-bresenham).\n\n[`drawille-canvas`](https://github.com/madbence/node-drawille-canvas) provides HTML5 Canvas API for drawille.\n\n## api\n\n### `Canvas(w, h)`\n\nCreate a new canvas with the given dimensions.\n`w` must be multiple of 2, `h` must be multiple of 4.\nUses `columns` \u0026 `rows` from `process.stdout` as default values for `w` and `h`.\n\n### `canvas.set(x, y)`\n\nDraw point on `canvas` at the given position.\n\n### `canvas.unset(x, y)`\n\nDelete point on `canvas` at the given position.\n\n### `canvas.toggle(x, y)`\n\nToggle point on `canvas` at the given position.\n\n### `canvas.clear()`\n\nClear the whole canvas (delete every point).\n\n### `canvas.frame(delimiter)`\n\nreturn the current content of `canvas`, as a `delimiter`-delimited\nstring. `delimiter` defaults to `\\n`.\n\nit uses braille characters to represent points,\nso every line has length of `w/2`, and the string contains `h/4`\nlines.\n\n## projects\n\n- [`vtop`](https://github.com/MrRio/vtop) uses it to draw CPU and memory usage charts in the terminal\n- [`datop`](https://github.com/maxogden/datop) uses it to draw [dat](https://github.com/maxogden/dat) statistics\n- [`boscillate`](https://www.npmjs.org/package/boscillate) uses it to draw [`baudio`](https://github.com/substack/baudio) soundwaves in real-time\n\n## license\n\nMIT\n\n  [unicode braille]: http://en.wikipedia.org/wiki/Braille_Patterns#Chart\n","funding_links":[],"categories":["Packages","JavaScript","包","Command-line utilities","目录","Libraries"],"sub_categories":["Command-line utilities","命令行工具","命令行实用工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadbence%2Fnode-drawille","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadbence%2Fnode-drawille","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadbence%2Fnode-drawille/lists"}