jsdom-little

2019-06-14 admin

jsdom-little是什么

什么是jsdom-little,Lightweight cut down version of jsdom without contextify

jsdom-little使用教程帮助文档

Build Status

WARNING: this fork is based on legacy jsdom version ~0.10.5.

UPDATE: jsdom 4+ doesn’t depend on contextify anymore however it no longer works with Node.js™ and instead requires io.js.

jsdom-little

Lightweight cut down version of jsdom.

Removed dependencies:

  • contextify
  • xmlhttprequest
  • request

Removed features:

  • Running JavaScript code in browser context
  • Fetching or processing external resources
  • Window
  • Events
  • XmlHttpRequest
  • Content of <style> nodes is not evaluated
  • jsdom.env works only as jsdom.env(html, level, callback) and returns {document: document}

What it is good for?

  • You need something from jsdom (DOM, parsing, etc.) but full browser emulation is overkill.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-67285.html

文章标题:jsdom-little

回到顶部