JSPM

jquery-node

0.3.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 559
    • Score
      100M100P100Q101554F
    • License MIT

    jQuery + browser-ish environment for unit testing on NodeJS

    Package Exports

    • jquery-node

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jquery-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    jquery-node

    Intention of this module is to bring a browser-ish environment to NodeJS so that unit testing can be made easier.

    On Node

    1. Creates a document using jsdom and make it available globally. To get window object use document.defaultView.
    2. Initializes jquery using jsdom and exports it.

    On browser Returns jquery if AMD is being used.