jquery-jsdom

1.0.0 • Public • Published

JQuery for Node

For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as jsDOM.

This library mocks the window with the one provided by jsDOM, making available Jquery (3.3.1) in node, for testing or parsing purposes.

Install

To include jQuery in Node, install with npm:

npm install jquery-jsdom

jQuery (3.3.1) and jsDOM are already included as dependencies and do not need to be included separately.

Usage

Typescript

import $ from 'jquery-jsdom';
 
$("<a>DOM</a>").html(); // "DOM"

Javascript

const $ = require('jquery-jsdom');
 
$("<a>DOM</a>").html(); // "DOM"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    64
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    64

Package Sidebar

Install

npm i jquery-jsdom

Weekly Downloads

51

Version

1.0.0

License

MIT

Unpacked Size

7.65 kB

Total Files

9

Last publish

Collaborators

  • giacomodeliberali