{"id":19429585,"url":"https://github.com/wolf-table/table","last_synced_at":"2025-05-16T12:10:50.421Z","repository":{"id":50357977,"uuid":"518809789","full_name":"wolf-table/table","owner":"wolf-table","description":"A web-based(canvas) JavaScript Table","archived":false,"fork":false,"pushed_at":"2024-08-07T07:26:17.000Z","size":638,"stargazers_count":528,"open_issues_count":14,"forks_count":58,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-12T09:27:40.491Z","etag":null,"topics":["canvas","data","table","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/wolf-table.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":"2022-07-28T10:59:19.000Z","updated_at":"2025-05-10T09:37:43.000Z","dependencies_parsed_at":"2024-11-24T23:15:36.245Z","dependency_job_id":null,"html_url":"https://github.com/wolf-table/table","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolf-table%2Ftable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolf-table%2Ftable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolf-table%2Ftable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolf-table%2Ftable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolf-table","download_url":"https://codeload.github.com/wolf-table/table/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527099,"owners_count":22085919,"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":["canvas","data","table","typescript"],"created_at":"2024-11-10T14:19:56.361Z","updated_at":"2025-05-16T12:10:50.397Z","avatar_url":"https://github.com/wolf-table.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/wolf-table/table\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/wolf-table/table/main/logo.svg\" height=\"80px\" width=\"450px\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/wolf-table/table/npm-publish-github-packages.yml\" alt=\"GitHub Workflow Status\"\u003e\n  \u003ca href=\"https://www.npmjs.org/package/@wolf-table/table\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@wolf-table/table.svg\" alt=\"npm package\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/downloads/wolf-table/table/total\" alt=\"GitHub all releases\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/wolf-table/table\" alt=\"GitHub\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/code-size/wolf-table/table\" alt=\" code size in bytes\"\u003e\n\u003c/p\u003e\n\n## wolf-table\n\u003e A web-based(canvas) JavaScript Table\n\n## Demo\n\u003ca href=\"https://stackblitz.com/edit/wolf-table-lts2dq?file=index.ts\"\u003eOpen in Stackblitz\u003c/a\u003e\n\u003ca href=\"https://wolf-table-lts2dq.stackblitz.io\"\u003ePreview in browser\u003c/a\u003e\n\n## NPM\nnpm install\n```shell\nnpm install @wolf-table/table@0.0.1\n```\n## Usage\n```javascript\nimport '@wolf-table/table/dist/table.min.css';\nimport Table from \"@wolf-table/table\";\n\nconst t = Table.create(\n  '#table',\n  () =\u003e 1400,\n  () =\u003e 600,\n  {\n    scrollable: true,\n    resizable: true,\n    selectable: true,\n    editable: true,\n    copyable: true,\n  }\n)\n  .freeze('D5')\n  .merge('F10:G11')\n  .merge('I10:K11')\n  .addBorder('E8:L12', 'all', 'medium', '#21ba45')\n  .formulaParser((v) =\u003e `${v}-formula`)\n  .data({\n    styles: [\n      { bold: true, strikethrough: true, color: '#21ba45', italic: true, align: 'center', fontSize: 12 },\n    ],\n    cells: [\n      [0, 0, 'abc'],\n      [1, 1, 100],\n      [2, 6, { value: 'formua', style: 0 }],\n      [9, 5, { value: '', formula: '=sum(A1:A10)' }],\n    ],\n  })\n  .render();\n\n// add style\nconst si = t.addStyle({\n  bold: true,\n  italic: true,\n  underline: true,\n  color: '#1b1c1d',\n});\n// set cell\nt.cell(2, 2, { value: 'set-value', style: si }).render();\n\n// get cell\nconsole.log('cell[2,2]:', t.cell(2, 2));\n```\n\n## Development\n\n```shell\ngit clone https://github.com/wolf-table/table.git\ncd table\nnpm install\nnpm run dev\n```\n\nOpen your browser and visit http://127.0.0.1:8080.\n\n## Browser Support\n\nModern browsers(chrome, firefox, Safari).\n\n## LICENSE\n\nMIT\n\nCopyright (c) 2022-present, myliang","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolf-table%2Ftable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolf-table%2Ftable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolf-table%2Ftable/lists"}