{"id":22061681,"url":"https://github.com/floofies/nodestringtable","last_synced_at":"2026-04-11T06:04:15.651Z","repository":{"id":135350499,"uuid":"158896905","full_name":"Floofies/nodeStringTable","owner":"Floofies","description":"A fork of the console.table and cli_table NodeJS source code which returns strings, and works in web browsers.","archived":false,"fork":false,"pushed_at":"2024-04-03T21:44:16.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T10:11:40.894Z","etag":null,"topics":["browser-polyfill","cli-table","console-table","javascript","nodejs","string","table","tabular-data"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Floofies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-24T02:51:10.000Z","updated_at":"2024-04-03T21:42:42.000Z","dependencies_parsed_at":"2024-11-30T18:14:04.229Z","dependency_job_id":"3178a22b-8932-4846-9fbc-c2841d918f2b","html_url":"https://github.com/Floofies/nodeStringTable","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"0ff545bfa786b5ecb9316b723a525c44db5cc01b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floofies%2FnodeStringTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floofies%2FnodeStringTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floofies%2FnodeStringTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Floofies%2FnodeStringTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Floofies","download_url":"https://codeload.github.com/Floofies/nodeStringTable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245139171,"owners_count":20567118,"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":["browser-polyfill","cli-table","console-table","javascript","nodejs","string","table","tabular-data"],"created_at":"2024-11-30T18:13:58.405Z","updated_at":"2025-12-30T23:29:56.430Z","avatar_url":"https://github.com/Floofies.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodeStringTable\n\n[![NPM](https://nodei.co/npm/nodestringtable.png?compact=true)](https://nodei.co/npm/nodestringtable/)\n\nA fork of the [`console.table`](https://nodejs.org/api/console.html#console_console_table_tabulardata_properties) and `cli_table.js` NodeJS source code which returns Strings, and works in web browsers.\n\nThis module works almost exactly like the NodeJS [`console.table`](https://nodejs.org/api/console.html#console_console_table_tabulardata_properties), with the main difference being that it returns a string rather than logging it to the console.\n\n## Usage\n\nYou can use the table function exactly like the NodeJS [`console.table`](https://nodejs.org/api/console.html#console_console_table_tabulardata_properties), but you must store the result as a string.\n\nWhen using the web browser bundles, the module is available via the `nsTable` global.\n\n```JavaScript\nconst nsTable = require(\"nodestringtable\");\nconst tabularData = {\n\tfirstName: \"John\",\n\tlastName: \"Smith\"\n}\nconst table = nsTable(tabularData);\n/* Creates a String table like this:\n┌───────────┬─────────┐\n│  (index)  │ Values  │\n├───────────┼─────────┤\n│ firstName │ 'John'  │\n│ lastName  │ 'Smith' │\n└───────────┴─────────┘\n*/\n```\n\n## Building for Browsers\n\nBundle `index.js` with Browserify in standalone mode, which should include a copy of the NodeJS `util` module to be used inside this module. The main bundle (`nsTable.js`) and an UglifyJS2 minified version (`nsTable.min.js`) will be saved to the `dist` directory.\n\nYou can just run the included NPM script which does this:\n\n```bash\nnpm run bundle\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloofies%2Fnodestringtable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloofies%2Fnodestringtable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloofies%2Fnodestringtable/lists"}