asgar-printer

1.0.6 • Public • Published

Example

Example.js

import { Printer } from "./index";

// import { Printer } from "asgar-printer";

const pdf_details={

name:"Asgar Aliyev",

skills:[

{

name:"HTML"

},

{

name:"CSS"

}

]

}

const printer = new Printer({url: "/public/my-pdf.html"});

await printer.init();

await printer.print(pdf_details);

/public/my-pdf.html

<title>Document</title>

Salam {{name}}

    {{#each skills}}

  • {{name}}
  • {{/each}}

Readme

Keywords

Package Sidebar

Install

npm i asgar-printer

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

8.1 kB

Total Files

6

Last publish

Collaborators

  • asgaraliyev