# headsman

> Uses a headless browser to fully render a webpage and return the final html content.

Latest version **1.0.24** (published 2017-02-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install headsman
pnpm add headsman
yarn add headsman
bun add headsman
```

## 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.24 |
| Published | 2017-02-10 |
| First published | 2017-02-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jack Isherwood |
| Maintainers | plenty-of-ish |
| Keywords | headless, scraping, phantom |

## Links

- npm: https://www.npmjs.com/package/headsman
- npm.io page: https://npm.io/package/headsman

## Dependencies (1)

- [phantom](https://npm.io/package/phantom.md) ^4.0.0

## Recent versions

- 1.0.24 (latest) — 2017-02-10
- 1.0.23 — 2017-02-10
- 1.0.22 — 2017-02-10
- 1.0.21 — 2017-02-09
- 1.0.20 — 2017-02-09
- 1.0.19 — 2017-02-09
- 1.0.18 — 2017-02-09
- 1.0.17 — 2017-02-09
- 1.0.16 — 2017-02-09
- 1.0.15 — 2017-02-09
- 1.0.14 — 2017-02-09
- 1.0.13 — 2017-02-09
- 1.0.12 — 2017-02-09
- 1.0.11 — 2017-02-09
- 1.0.10 — 2017-02-09
- … 10 more at https://npm.io/package/headsman/versions

## README

headsman - Fast NodeJS API for scraping html
========


## Makes scraping dynamically generated websites easy.
```js
const headsman = require('headsman');

async function dynamicToHtml() {
    
    //headsman.getHtml takes a string URL and returns the fully generated html.
    var content = await headsman.getHtml("http://www.example.com");
    
    return content
}

console.log(dynamicToHtml())
```

Using Node v7+ you can run the above example with `node --harmony-async-await file.js`

Install headsman with:

```bash
$ npm install headsman --save
```

## People

  The current lead maintainer is [Jack Isherwood]

## License

  [ISC](LICENSE.md)

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