trauma-pdf-manager
v1.0.6
Published
For the Trauma App to manage evolving versions of the report generator.
Downloads
4
Readme
Report Manager
For the Trauma App to manage evolving versions of the report generator.
Usage
- Import the default export from the package and pass json in ICaseSummary format which will generate a PDF and save it in the working direcotry.
- Or add the second optional boolean parameter and it will return an ArrayBuffer of the report
Adding further packages
- import the updated version of the Trauma-pdf-report from npm using the aliasing syntax
npm i trauma-report-pdf-mac<X>@npm:trauma-report-pdf-mac@<version | latest>
Where x is an incrementing version number which should correspond to the major version release
- and then import the new generation function and use it in a new case in the switch statement