├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── assets └── printer@256.png ├── package.json ├── packages ├── core │ ├── README.md │ ├── package.json │ └── src │ │ ├── evaluate.ts │ │ ├── fetch.ts │ │ ├── index.ts │ │ ├── outline │ │ ├── index.ts │ │ ├── structure.ts │ │ └── typing.ts │ │ ├── pdf.ts │ │ ├── print.ts │ │ ├── typings │ │ ├── index.ts │ │ ├── options.ts │ │ ├── playwright.ts │ │ ├── plugin.ts │ │ └── utils.ts │ │ └── utils │ │ ├── bar.ts │ │ └── index.ts ├── create-printer │ ├── README.md │ ├── package.json │ ├── pnpm-lock.yaml │ ├── src │ │ └── index.ts │ └── template │ │ ├── javascript-info │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── juejin │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── manual │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── mdbook │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── ruanyifeng │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── vitepress │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── wikipedia │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── xiaobot │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ ├── zhihu │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ │ └── index.ts │ │ └── zhubai │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ └── index.ts ├── javascript-info │ ├── README.md │ ├── package.json │ └── src │ │ └── index.ts ├── juejin │ ├── README.md │ ├── package.json │ └── src │ │ └── index.ts ├── mdbook │ ├── README.md │ ├── package.json │ └── src │ │ └── index.ts ├── ruanyifeng │ ├── README.md │ ├── package.json │ └── src │ │ └── index.ts ├── vitepress │ ├── README.md │ ├── package.json │ └── src │ │ └── index.ts ├── wikipedia │ ├── README.md │ ├── package.json │ └── src │ │ ├── index.ts │ │ └── style.ts ├── xiaobot │ ├── README.md │ ├── package.json │ └── src │ │ └── index.ts ├── zhihu │ ├── README.md │ ├── package.json │ └── src │ │ ├── fetch.ts │ │ ├── index.ts │ │ └── style.ts └── zhubai │ ├── README.md │ ├── package.json │ └── src │ └── index.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── test ├── fetch.test.ts ├── injectStyle.test.ts ├── outline.test.ts └── print.test.ts ├── tsconfig.json └── vitest.config.ts /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | pnpm-lock.yaml 4 | test 5 | *.js -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | userData 2 | node_modules 3 | *.pdf 4 | *.tmp 5 | dist 6 | output 7 | .eslintcache 8 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/README.md -------------------------------------------------------------------------------- /assets/printer@256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/assets/printer@256.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/package.json -------------------------------------------------------------------------------- /packages/core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/README.md -------------------------------------------------------------------------------- /packages/core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/package.json -------------------------------------------------------------------------------- /packages/core/src/evaluate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/evaluate.ts -------------------------------------------------------------------------------- /packages/core/src/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/fetch.ts -------------------------------------------------------------------------------- /packages/core/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/index.ts -------------------------------------------------------------------------------- /packages/core/src/outline/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/outline/index.ts -------------------------------------------------------------------------------- /packages/core/src/outline/structure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/outline/structure.ts -------------------------------------------------------------------------------- /packages/core/src/outline/typing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/outline/typing.ts -------------------------------------------------------------------------------- /packages/core/src/pdf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/pdf.ts -------------------------------------------------------------------------------- /packages/core/src/print.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/print.ts -------------------------------------------------------------------------------- /packages/core/src/typings/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/typings/index.ts -------------------------------------------------------------------------------- /packages/core/src/typings/options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/typings/options.ts -------------------------------------------------------------------------------- /packages/core/src/typings/playwright.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/typings/playwright.ts -------------------------------------------------------------------------------- /packages/core/src/typings/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/typings/plugin.ts -------------------------------------------------------------------------------- /packages/core/src/typings/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/typings/utils.ts -------------------------------------------------------------------------------- /packages/core/src/utils/bar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/utils/bar.ts -------------------------------------------------------------------------------- /packages/core/src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/core/src/utils/index.ts -------------------------------------------------------------------------------- /packages/create-printer/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/README.md -------------------------------------------------------------------------------- /packages/create-printer/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/package.json -------------------------------------------------------------------------------- /packages/create-printer/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/pnpm-lock.yaml -------------------------------------------------------------------------------- /packages/create-printer/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/javascript-info/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/javascript-info/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/javascript-info/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/javascript-info/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/javascript-info/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/javascript-info/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/juejin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/juejin/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/juejin/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/juejin/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/juejin/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/juejin/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/manual/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/manual/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/manual/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/manual/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/manual/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/manual/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/mdbook/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/mdbook/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/mdbook/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/mdbook/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/mdbook/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/mdbook/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/ruanyifeng/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/ruanyifeng/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/ruanyifeng/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/ruanyifeng/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/ruanyifeng/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/ruanyifeng/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/vitepress/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/vitepress/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/vitepress/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/vitepress/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/vitepress/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/vitepress/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/wikipedia/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/wikipedia/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/wikipedia/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/wikipedia/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/wikipedia/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/wikipedia/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/xiaobot/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/xiaobot/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/xiaobot/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/xiaobot/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/xiaobot/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/xiaobot/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/zhihu/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/zhihu/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/zhihu/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/zhihu/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/zhihu/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/zhihu/src/index.ts -------------------------------------------------------------------------------- /packages/create-printer/template/zhubai/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/zhubai/README.md -------------------------------------------------------------------------------- /packages/create-printer/template/zhubai/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/zhubai/package.json -------------------------------------------------------------------------------- /packages/create-printer/template/zhubai/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/create-printer/template/zhubai/src/index.ts -------------------------------------------------------------------------------- /packages/javascript-info/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/javascript-info/README.md -------------------------------------------------------------------------------- /packages/javascript-info/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/javascript-info/package.json -------------------------------------------------------------------------------- /packages/javascript-info/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/javascript-info/src/index.ts -------------------------------------------------------------------------------- /packages/juejin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/juejin/README.md -------------------------------------------------------------------------------- /packages/juejin/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/juejin/package.json -------------------------------------------------------------------------------- /packages/juejin/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/juejin/src/index.ts -------------------------------------------------------------------------------- /packages/mdbook/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/mdbook/README.md -------------------------------------------------------------------------------- /packages/mdbook/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/mdbook/package.json -------------------------------------------------------------------------------- /packages/mdbook/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/mdbook/src/index.ts -------------------------------------------------------------------------------- /packages/ruanyifeng/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/ruanyifeng/README.md -------------------------------------------------------------------------------- /packages/ruanyifeng/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/ruanyifeng/package.json -------------------------------------------------------------------------------- /packages/ruanyifeng/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/ruanyifeng/src/index.ts -------------------------------------------------------------------------------- /packages/vitepress/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/vitepress/README.md -------------------------------------------------------------------------------- /packages/vitepress/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/vitepress/package.json -------------------------------------------------------------------------------- /packages/vitepress/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/vitepress/src/index.ts -------------------------------------------------------------------------------- /packages/wikipedia/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/wikipedia/README.md -------------------------------------------------------------------------------- /packages/wikipedia/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/wikipedia/package.json -------------------------------------------------------------------------------- /packages/wikipedia/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/wikipedia/src/index.ts -------------------------------------------------------------------------------- /packages/wikipedia/src/style.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/wikipedia/src/style.ts -------------------------------------------------------------------------------- /packages/xiaobot/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/xiaobot/README.md -------------------------------------------------------------------------------- /packages/xiaobot/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/xiaobot/package.json -------------------------------------------------------------------------------- /packages/xiaobot/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/xiaobot/src/index.ts -------------------------------------------------------------------------------- /packages/zhihu/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhihu/README.md -------------------------------------------------------------------------------- /packages/zhihu/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhihu/package.json -------------------------------------------------------------------------------- /packages/zhihu/src/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhihu/src/fetch.ts -------------------------------------------------------------------------------- /packages/zhihu/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhihu/src/index.ts -------------------------------------------------------------------------------- /packages/zhihu/src/style.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhihu/src/style.ts -------------------------------------------------------------------------------- /packages/zhubai/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhubai/README.md -------------------------------------------------------------------------------- /packages/zhubai/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhubai/package.json -------------------------------------------------------------------------------- /packages/zhubai/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/packages/zhubai/src/index.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /test/fetch.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/test/fetch.test.ts -------------------------------------------------------------------------------- /test/injectStyle.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/test/injectStyle.test.ts -------------------------------------------------------------------------------- /test/outline.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/test/outline.test.ts -------------------------------------------------------------------------------- /test/print.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/test/print.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ourongxing/web-printer/HEAD/vitest.config.ts --------------------------------------------------------------------------------