b9-5-1-testpack

1.0.0 • Public • Published

INSTALL

To include jQuery in Node, first install with npm.

npm install jquery 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 can be useful for testing purposes.

const { JSDOM } = require( "jsdom" ); const { window } = new JSDOM( "" ); const $ = require( "jquery" )( window );

Readme

Keywords

none

Package Sidebar

Install

npm i b9-5-1-testpack

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.15 kB

Total Files

3

Last publish

Collaborators

  • dondetta