# vue-perfect-print

> This is a simple and fast component for printing the local content of the page.

Latest version **1.0.1** (published 2020-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-perfect-print
pnpm add vue-perfect-print
yarn add vue-perfect-print
bun add vue-perfect-print
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-11 |
| First published | 2020-09-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | fengli01 |
| Maintainers | fengli01 |

## Links

- npm: https://www.npmjs.com/package/vue-perfect-print
- Repository: https://github.com/fengli01/vue-perfect-print
- Homepage: https://github.com/fengli01/vue-perfect-print#readme
- Issues: https://github.com/fengli01/vue-perfect-print/issues
- npm.io page: https://npm.io/package/vue-perfect-print

## Recent versions

- 1.0.1 (latest) — 2020-09-11

## README

# vue-perfect-print
This is a simple and fast component for printing the local content of the page.
## Install
```
npm install vue-perfect-print
```

```
import VuePerfectPrint from 'vue-perfect-print'

Vue.use(VuePerfectPrint);
```
## Run demo
```
<template>
    <div>
        <button @click="print">click print</button>
    </div>
</template>

<script>
    export default {
        methods:{
            print(){
                this.perfectPrint({
                    content: "<h1>打印</h1>"
                });
            }
        }
    }
</script>
```
### Parameter description

Parameter | Required | Description
----|------|----
id | false  | ID of the print window
content | true  | Print content, support HTML and text
showHeaderFooter | false  | Display page and footer, default false

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