# url_washer

> Pass in an url and get back the html cleansed of js..

Latest version **0.2.11** (published 2014-09-10) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.11 |
| Published | 2014-09-10 |
| First published | 2013-10-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.x |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michiel van Oosten |
| Maintainers | michieljoris |
| Keywords | phantomjs, seo, server |

## Links

- npm: https://www.npmjs.com/package/url_washer
- Repository: https://github.com/michieljoris/url_washer
- Issues: https://github.com/michieljoris/url_washer/issues
- npm.io page: https://npm.io/package/url_washer

## Dependencies (4)

- [which](https://npm.io/package/which.md) *
- [extend](https://npm.io/package/extend.md) *
- [request](https://npm.io/package/request.md) *
- [dougs_vow](https://npm.io/package/dougs_vow.md) *

## Recent versions

- 0.2.11 (latest) — 2014-09-10
- 0.2.10 — 2014-09-06
- 0.2.9 — 2014-09-05
- 0.2.8 — 2014-09-05
- 0.2.7 — 2014-09-05
- 0.2.6 — 2014-09-05
- 0.2.5 — 2014-09-05
- 0.2.4 — 2014-03-21
- 0.2.3 — 2014-02-14
- 0.2.2 — 2013-11-18
- 0.2.1 — 2013-11-17
- 0.2.0 — 2013-11-13
- 0.1.3 — 2013-10-26
- 0.1.1 — 2013-10-20
- 0.1.0 — 2013-10-20

## README

url_washer
-----------------

    var wash =require('path/to/wash.js');
    var washed = wash('someurl', someOptions);

wash returns a vow (Crockford's version) that promises to deliver html
rendered by phantomjs after browsing someUrl.

If phantomjs is not on the path, you can pass in the path in options:

    someOptions = 
    { phantomPath: 'path/to/phantomjs', 
	  seoServer: 'seoServerUrl'}

You can also do

    npm install phantomjs 
	
in the url_washer dir.

Or uncomment the phantomjs dependency in package.js, then:

    node package.js
	npm install
	
If wash can't find a phantomjs executable it will ask the seoServer
(if set in options)

It will do an ajax call to http://seoServerUrl?url=someUrl, and expect
html to be returned.

Finally:

    washed.when(function(html) { 
	   //send the html perhaps
	},
	function(err) {
	  //no dice, you will have to send uncleansed html
    })

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