jsdom-cli

0.0.6 • Public • Published

jsdom-cli

A mini REPL based on jsdom.

npm install -g jsdom-cli

USAGE

jsdom-cli http://example.com or just jsdom-cli

API

open(url)

Open a new url > open("http://google.com")

inject(filename)

Inject javascript. > inject("./lib/underscore.js")

jQueryify()

Inject the lastest version of jquery

> jQueryfiy()
undefined
> window.jQuery
...

edit()

Edit the DOM with the default HTML editor and reload it

inspect()

Inspect and navigate the DOM like in the browsers dev tools

Readme

Keywords

none

Package Sidebar

Install

npm i jsdom-cli

Weekly Downloads

1

Version

0.0.6

License

none

Last publish

Collaborators

  • niclupien