# to-pdf

> convert your code to pdf from within node code .

Latest version **0.0.2** (published 2015-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-pdf
pnpm add to-pdf
yarn add to-pdf
bun add to-pdf
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-06-10 |
| First published | 2015-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sarthak Munshi |
| Maintainers | saru95 |

## Links

- npm: https://www.npmjs.com/package/to-pdf
- Repository: https://github.com/saru95/to-pdf
- Issues: https://github.com/saru95/to-pdf/issues
- npm.io page: https://npm.io/package/to-pdf

## Dependencies (1)

- [phantomjs-pdf](https://npm.io/package/phantomjs-pdf.md) 0.1.2

## Recent versions

- 0.0.2 (latest) — 2015-06-10
- 0.0.1 — 2015-06-10

## README

# 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 :
```js
//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 :
```js
//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)
![](http://i57.tinypic.com/11uiw7n.jpg)

2)
![](http://i62.tinypic.com/28te6ht.jpg)

---
_Source: https://npm.io/package/to-pdf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
