Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redco/goose-jsdom-environment
https://github.com/redco/goose-jsdom-environment
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/redco/goose-jsdom-environment
- Owner: redco
- License: mit
- Created: 2017-10-02T16:40:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-16T21:02:05.000Z (over 5 years ago)
- Last Synced: 2024-10-11T01:08:16.389Z (about 1 month ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Goose JsDOM Environment
[![Build Status](https://img.shields.io/circleci/project/github/redco/goose-jsdom-environment.svg?style=flat)](https://circleci.com/gh/redco/goose-jsdom-environment)
[![Latest Stable Version](https://img.shields.io/npm/v/goose-jsdom-environment.svg?style=flat)](https://www.npmjs.com/package/goose-jsdom-environment)
[![Total Downloads](https://img.shields.io/npm/dt/goose-jsdom-environment.svg?style=flat)](https://www.npmjs.com/package/goose-jsdom-environment)Environment for [Goose Parser](https://github.com/redco/goose-parser) which allows to run it using [JsDom](https://github.com/jsdom/jsdom)
## JsDOMEnvironment
This environment is used for running Parser with jsdom.
```JS
const env = new JsDOMEnvironment({
url: 'http://google.com',
});
```
The main and only required parameter is `url`. It contains an url address of the site, where Parser will start.This environment allows:
- execute dynamic JavaScript on the page
- use single proxy
- and more sweet features