# phantastic

> get a list of website resources via phantomjs

Latest version **0.1.3** (published 2015-09-14) · Public Domain license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2015-09-14 |
| First published | 2015-07-08 |
| Weekly downloads | 0 |
| License | Public Domain |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+5 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yetzt |
| Maintainers | yetzt |
| Keywords | phantomjs, phantastic, scraper, website, resources |

## Links

- npm: https://www.npmjs.com/package/phantastic
- Repository: https://github.com/yetzt/node-phantastic
- Issues: https://github.com/yetzt/node-phantastic/issues
- npm.io page: https://npm.io/package/phantastic

## Dependencies (8)

- [tmp](https://npm.io/package/tmp.md) 0.0.26
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [cookie](https://npm.io/package/cookie.md) ^0.2.0
- [moment](https://npm.io/package/moment.md) ^2.10.3
- [request](https://npm.io/package/request.md) ^2.58.0
- [lru-files](https://npm.io/package/lru-files.md) 0.0.4
- [phantomjs](https://npm.io/package/phantomjs.md) ^1.9.17
- [valid-url](https://npm.io/package/valid-url.md) ^1.0.9

## 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.3 (latest) — 2015-09-14
- 0.1.2 — 2015-07-08
- 0.1.1 — 2015-07-08

## README

# phantastic

get a list of website resources via phantomjs

## install

```
npm install phantastic
```

## usage example

``` javascript
var phantastic = require("phantastic")({
	cache: {
		// see https://npmjs.com/package/lru-files
		dir: "/path/to/cache/dir",
		files: 100,
		size: "1 GB",
		age: "1 Day"
	}
});

// fetch single site
phantastic.fetch("https://www.example.com/", function(err, data){
	if (err) return console.log(err);
	console.log(data);
});
```

## data 

data is an array of resource object. they look like this

``` javascript
[{
	url: 'https://www.example.org/resource',
	domain: 'www.example.org',
	size: 2440,
	time: 87,
	content: 'mime/type',
	cookies: [{
		name: "Some-Cookie",
		size: 1024,
		valid: 356
	}]
}]
```

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