# print-any-html

> Let the browser print any HTML string.

Latest version **0.1.0** (published 2016-12-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install print-any-html
pnpm add print-any-html
yarn add print-any-html
bun add print-any-html
```

## 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.1.0 |
| Published | 2016-12-01 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | print, html, iframe, browser |

## Links

- npm: https://www.npmjs.com/package/print-any-html
- Repository: https://github.com/derhuerst/print-any-html
- Homepage: http://derhuerst.github.io/print-any-html/
- Issues: https://github.com/derhuerst/print-any-html/issues
- npm.io page: https://npm.io/package/print-any-html

## Dependencies (1)

- [window-on-print](https://npm.io/package/window-on-print.md) ^0.1.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-12-01

## README

# print-any-html

**Let the browser print any HTML string.**

[![npm version](https://img.shields.io/npm/v/print-any-html.svg)](https://www.npmjs.com/package/print-any-html)
[![build status](https://img.shields.io/travis/derhuerst/print-any-html.svg)](https://travis-ci.org/derhuerst/print-any-html)
[![dependency status](https://img.shields.io/david/derhuerst/print-any-html.svg)](https://david-dm.org/derhuerst/print-any-html)
[![dev dependency status](https://img.shields.io/david/dev/derhuerst/print-any-html.svg)](https://david-dm.org/derhuerst/print-any-html#info=devDependencies)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/print-any-html.svg)


## Installing

Use the bundle from `build/print-any-html.min.js` or install using [npm](https://www.npmjs.com).

```shell
npm install print-any-html
```


## Usage

```
print(html, [callback], [delay])
```

`delay` is `20` ms by default.

```js
const print = require('print-any-html')

const html = `
	<!doctype html>
	<html>
	<head>
		<meta charset="utf-8"/>
		<style>
			p { text-transform: uppercase; }
		</style>
	</head>
	<body>
		<p>Hello World.</p>
	</body>
	</html>
`

print(html, () => {
	console.info('user has printed or aborted')
})
```


## Contributing

If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/print-any-html/issues).

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