0.0.2 • Published 9 years ago

to-pdf v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

toPDF

Convert your code into PDF from within your node code . PDF gets generated in the same folder as the code calling it with the name print.pdf .

Install

npm install toPDF

Usage

toPDF takes 3 parameters : filename , descriptions and author name .

Example :

1) Printing the same code :

//test.js

var pdf = require('toPDF') ;

console.log("Tonight's gonna be a good night") ;

pdf.toPDF('test.js','Just a simple test file','Sarthak Munshi') ;

2) Printing another file :

//test.js

var pdf = require('toPDF') ;

console.log("Tonight's gonna be a good night") ;

pd.toPDF('package.json','Printing the JSON','Sarthak Munshi') ;

Output

1) npm.io

2) npm.io

0.0.2

9 years ago

0.0.1

9 years ago