@shad0wz7/nestjs-pdf 2.4.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/index.cjs +3840 -0
- package/dist/index.d.cts +530 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +481 -344
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3719 -5137
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -16
- package/dist/index.d.ts +0 -393
- package/dist/index.js +0 -5196
package/README.md
CHANGED
|
@@ -180,6 +180,20 @@ these are the default extra arguments passed to Puppeteer:
|
|
|
180
180
|
|
|
181
181
|
You can use `forRootAsync(...)` if you need to provide configuration asynchronously.
|
|
182
182
|
|
|
183
|
+
## Examples
|
|
184
|
+
|
|
185
|
+
If you want to see a working example, check the `examples` folder and choose one of the subfolders with the engine you want to use.
|
|
186
|
+
These are minimal examples of how to use the library with different template engines. Use Nest.Js documentation to init a real project and integrate the library.
|
|
187
|
+
|
|
188
|
+
If you want to test locally the examples with the entire project, you can follow these steps:
|
|
189
|
+
|
|
190
|
+
- uncomment the `packages` section in the `pnpm-workspace.yaml` file
|
|
191
|
+
- run `pnpm install` to install dependencies
|
|
192
|
+
- set 'workspace:*' in the `package.json` of the example you want to test at the `dependencies` section for the `@shad0wz7/nestjs-pdf` package
|
|
193
|
+
- run `pnpm run build` to build the library
|
|
194
|
+
- run `pnpm run start` in the example folder to start the example application
|
|
195
|
+
- test it
|
|
196
|
+
|
|
183
197
|
## Tests
|
|
184
198
|
|
|
185
199
|
This repository includes unit and integration tests (Jest). To run the tests:
|