{"id":26879709,"url":"https://github.com/dhjz/export-doc","last_synced_at":"2025-05-07T20:10:15.209Z","repository":{"id":252202117,"uuid":"839730366","full_name":"dhjz/export-doc","owner":"dhjz","description":"纯前端js将html导出word文档doc文档(含样式、图片、canvas等元素), 没有其他依赖，支持排除指定样式","archived":false,"fork":false,"pushed_at":"2024-08-09T01:37:14.000Z","size":597,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T13:36:57.349Z","etag":null,"topics":["export-doc","export-word","js-export","js-export-doc","js-export-word"],"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/dhjz.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":"2024-08-08T08:03:02.000Z","updated_at":"2025-01-18T10:48:24.000Z","dependencies_parsed_at":"2024-08-08T10:36:48.702Z","dependency_job_id":null,"html_url":"https://github.com/dhjz/export-doc","commit_stats":null,"previous_names":["dhjz/export-doc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhjz%2Fexport-doc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhjz%2Fexport-doc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhjz%2Fexport-doc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhjz%2Fexport-doc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhjz","download_url":"https://codeload.github.com/dhjz/export-doc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949279,"owners_count":21830152,"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":["export-doc","export-word","js-export","js-export-doc","js-export-word"],"created_at":"2025-03-31T13:31:42.844Z","updated_at":"2025-05-07T20:10:15.163Z","avatar_url":"https://github.com/dhjz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 介绍\n纯前端js将html导出word文档doc文档(含样式、图片、canvas等元素), 没有其他依赖，支持排除指定样式\n\n### 示例\n[http://199311.xyz/export-doc/example/index.html](http://199311.xyz/export-doc/example/index.html)\n\n### 构建\n```shell\nnpm install\nnpm run build\n```\n\n### 使用\n- 详见`example/index.html`\n``` html\n\u003cscript src=\"../dist/export-doc.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nExportDoc.toWord('#test-word', {\n\ttitle: '关于导出王麻子这件事情',\n\ttime: '2024年8月15日 上午10点',\n\tfileName: '剑来.doc', // 导出文件名\n\tmaxWidth: 550, // 正文图片最大宽度,\n    \tblob: false, // 返回结果为blob\n\texclude: ['.not-export', '.not-export1'] // // 排除元素选择器\n})\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhjz%2Fexport-doc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhjz%2Fexport-doc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhjz%2Fexport-doc/lists"}