A TypeScript-based HTML to PDF converter library.
-
src/
- Contains all source TypeScript filessrc/pdf/
- PDF generation and rendering logicsrc/html/
- HTML parsing and conversion logicsrc/css/
- CSS parsing and styling logicsrc/layout/
- Layout calculation logic- Other source directories...
-
dist/
- Contains compiled JavaScript files (generated by build)dist/pdf/
- Compiled PDF moduledist/html/
- Compiled HTML module- Other compiled modules...
-
Root files:
package.json
- Project dependencies and scripts
-
tsconfig.json
- TypeScript configuration -
vitest.config.ts
- Testing configuration
- Install dependencies:
npm install
- Build the project:
npm run build
- Run tests:
npm test
- Run playground:
npm run playground
This is a TypeScript project that compiles source files from the src/
directory to JavaScript files in the dist/
directory. The build process is configured in tsconfig.json
.
Note: Do not modify files in the dist/
directory directly. Make changes in the src/
directory and run npm run build
to generate updated compiled files.