Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/capricorn86/happy-dom
/ functions
Functions
4,499 in github.com/capricorn86/happy-dom
⨍
Functions
4,499
◇
Types & classes
1,211
↓ 2 callers
Method
nodeToWebStream
* Wraps a Node.js stream into a browser-compatible ReadableStream. * * Enables the use of Node.js streams where browser ReadableStreams are requir
packages/happy-dom/src/fetch/utilities/FetchBodyUtility.ts:244
↓ 2 callers
Method
off
(event: string, listener: Function)
packages/happy-dom/test/web-socket/WebSocket.test.ts:42
↓ 2 callers
Method
onResponseAvailable
* On response available. * * @returns Response.
packages/happy-dom/src/fetch/preload/PreloadEntry.ts:22
↓ 2 callers
Method
once
(event: string, listener: Function)
packages/happy-dom/test/web-socket/WebSocket.test.ts:35
↓ 2 callers
Method
parse
* Parses response. * * @param options Options. * @param options.window Window. * @param [options.responseType] Response type. * @param [opti
packages/happy-dom/src/xml-http-request/XMLHttpRequestResponseDataParser.ts:21
↓ 2 callers
Method
parseComment
* Parses comment. * * @param comment Comment.
packages/happy-dom/src/html-parser/HTMLParser.ts:692
↓ 2 callers
Method
parseMonthComponent
* Parses the month component of a date string. * * @param value
packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts:139
↓ 2 callers
Method
parseResponseHeaders
* Appends headers to response. * * @param nodeResponse HTTP request. * @param options * @param options.browserFrame * @param options.request
packages/happy-dom/src/fetch/utilities/FetchResponseHeaderUtility.ts:19
↓ 2 callers
Method
postMessage
* Safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe
packages/happy-dom/src/window/BrowserWindow.ts:2797
↓ 2 callers
Method
preload
* Compiles and preloads the module and its imports. * * @returns Promise.
packages/happy-dom/src/module/types/IModule.ts:19
↓ 2 callers
Method
prepareRequest
* Prepares the request before being sent. * * @param originURL Origin URL. * @param request Request.
packages/happy-dom/src/fetch/utilities/FetchRequestReferrerUtility.ts:32
↓ 2 callers
Method
previousNode
* Moves the current Node to the previous visible node in the document order, and returns the found node. It also moves the current node to this one. I
packages/happy-dom/src/tree-walker/TreeWalker.ts:129
↓ 2 callers
Method
readAsText
* Reads as text. * * @param blob Blob. * @param [encoding] Encoding.
packages/happy-dom/src/file/FileReader.ts:94
↓ 2 callers
Method
removeAllRanges
* Removes all ranges.
packages/happy-dom/src/selection/Selection.ts:229
↓ 2 callers
Method
removeProperty
* Removes a property. * * @param name Property name in kebab case. * @param value Value. Must not contain "!important" as that should be set usi
packages/happy-dom/src/css/declaration/CSSStyleDeclaration.ts:4903
↓ 2 callers
Method
render
* Renders URLs. * * @param items Items.
packages/@happy-dom/server-renderer/src/ServerRendererBrowser.ts:42
↓ 2 callers
Method
replace
* * @param historyItem
packages/happy-dom/src/history/HistoryItemList.ts:40
↓ 2 callers
Method
replaceChild
* Replaces a node with another. * * @param newChild New child. * @param oldChild Old child. * @returns Replaced node.
packages/happy-dom/src/nodes/node/Node.ts:457
↓ 2 callers
Method
reportValidity
* Reports validity. * * @returns "true" if validation does'nt fail.
packages/happy-dom/src/nodes/html-form-element/HTMLFormElement.ts:501
↓ 2 callers
Method
rotateFromVector
* Returns a new SVGMatrix instance which is this matrix post multiplied by a skew matrix along the X axis by the given angle. * * Not implemented
packages/happy-dom/src/svg/SVGMatrix.ts:252
↓ 2 callers
Method
rotateFromVectorSelf
* Sets self to be multiplied by a skew matrix along the X axis by the given angle. * * @param [x] X-Axis skew. * @param [y] Y-Axis skew.
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:467
↓ 2 callers
Method
rotateSelf
* Set self to be multiplied by each of 3 rotation matrices about the major axes, first X, then Y, then Z. * * @param [x] X component of the rotati
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:456
↓ 2 callers
Method
sanitize
* Sanitizes a value. * * @param input Input. * @param value Value.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElementValueSanitizer.ts:16
↓ 2 callers
Method
save
()
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:98
↓ 2 callers
Method
scale
(x: number, y: number)
packages/happy-dom/src/canvas/ICanvasRenderingContext2D.ts:108
↓ 2 callers
Method
scaleNonUniform
* Returns a new SVGMatrix instance which is this matrix post multiplied by a scale 3D matrix containing the passed values. * * @param [scaleX] X-A
packages/happy-dom/src/svg/SVGMatrix.ts:222
↓ 2 callers
Method
scaleNonUniformSelf
* Sets self to be multiplied by a scale matrix containing the passed values. * * @param [scaleX] X-Axis scale. * @param [scaleY] Y-Axis scale.
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:429
↓ 2 callers
Method
scaleSelf
* Sets self to be multiplied by a scale matrix containing the passed values. * * @param [scaleX] X-Axis scale. * @param [scaleY] Y-Axis scale.
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:396
↓ 2 callers
Method
scroll
* Scrolls to a particular set of coordinates. * * @param x X position or options object. * @param y Y position.
packages/happy-dom/src/window/BrowserWindow.ts:2282
↓ 2 callers
Method
scrollBy
* Scrolls by a relative amount from the current position. * * @param x Pixels to scroll by from top or scroll options object. * @param y Pixels
packages/happy-dom/src/nodes/element/Element.ts:1385
↓ 2 callers
Method
select
* Selects the text.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1255
↓ 2 callers
Method
selectNode
* Sets the Range to contain the Node and its contents. * * @see https://dom.spec.whatwg.org/#concept-range-select * @param node Reference node.
packages/happy-dom/src/range/Range.ts:902
↓ 2 callers
Method
set
(target, property, newValue)
packages/happy-dom/src/css/MediaList.ts:39
↓ 2 callers
Method
setAttributeNode
* The setAttributeNode() method adds a new Attr node to the specified element. * * @param attribute Attribute. * @returns Replaced attribute.
packages/happy-dom/src/nodes/element/Element.ts:1275
↓ 2 callers
Method
setHash
* Sets hash. * * @param hash Hash.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:319
↓ 2 callers
Method
setHost
* Sets host. * * @param host Host.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:168
↓ 2 callers
Method
setHostname
* Sets hostname. * * @param hostname Hostname.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:197
↓ 2 callers
Method
setHref
* Sets href. * * @param href Href.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:59
↓ 2 callers
Method
setInnerHeight
* Sets the window height. * * @deprecated Use setViewport() instead. * @param height Height.
packages/happy-dom/src/window/DetachedWindowAPI.ts:130
↓ 2 callers
Method
setInnerWidth
* Sets the window width. * * @deprecated Use setViewport() instead. * @param width Width.
packages/happy-dom/src/window/DetachedWindowAPI.ts:120
↓ 2 callers
Method
setInterval
* Calls a function with a fixed time delay between each call. * * @param callback Function to be executed. * @param [delay=0] Delay in ms. * @
packages/happy-dom/src/window/BrowserWindow.ts:2568
↓ 2 callers
Method
setItem
* Sets item. * * @param name Name. * @param item Item.
packages/happy-dom/src/storage/Storage.ts:117
↓ 2 callers
Method
setPassword
* Sets password. * * @param password Password.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:139
↓ 2 callers
Method
setPathname
* Sets pathname. * * @param pathname Pathname.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:255
↓ 2 callers
Method
setPort
* Sets port. * * @param port Port.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:226
↓ 2 callers
Method
setProtocol
* Sets protocol. * * @param protocol Protocol.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:81
↓ 2 callers
Method
setRangeText
* Set range text. * * @param replacement Replacement. * @param [start] Start. * @param [end] End. * @param [direction] Direction. * @param
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:1301
↓ 2 callers
Method
setRequestHeader
* Sets a header for the request. * * @param name Header name. * @param value Header value. * @returns Header added.
packages/happy-dom/src/xml-http-request/XMLHttpRequest.ts:253
↓ 2 callers
Method
setRotate
* Set rotate. * * @param angle Angle. * @param x X. * @param y Y.
packages/happy-dom/src/svg/SVGTransform.ts:280
↓ 2 callers
Method
setSearch
* Sets search. * * @param search Search.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:284
↓ 2 callers
Method
setStdDeviation
* Sets stdDeviation. * * @param x X. * @param y Y.
packages/happy-dom/src/nodes/svg-fe-drop-shadow-element/SVGFEDropShadowElement.ts:223
↓ 2 callers
Method
setTranslate
* Set translate. * * @param x X. * @param y Y.
packages/happy-dom/src/svg/SVGTransform.ts:213
↓ 2 callers
Method
setUsername
* Sets username. * * @param username Username.
packages/happy-dom/src/nodes/html-hyperlink-element/HTMLHyperlinkElementUtility.ts:110
↓ 2 callers
Method
setup
* Setup. * * @returns Promise.
packages/@happy-dom/jest-environment/src/index.ts:144
↓ 2 callers
Method
show
* Shows the dialog.
packages/happy-dom/src/nodes/html-dialog-element/HTMLDialogElement.ts:101
↓ 2 callers
Method
showModal
* Shows the modal.
packages/happy-dom/src/nodes/html-dialog-element/HTMLDialogElement.ts:94
↓ 2 callers
Method
skewX
* Returns a new SVGMatrix instance that specifies a skew transformation along X-Axis by the given angle. * * @param angle Angle amount in degrees
packages/happy-dom/src/svg/SVGMatrix.ts:266
↓ 2 callers
Method
skewXSelf
* Set self to be specified as a skew transformation along X-Axis by the given angle. * * @param angle Angle amount in degrees to skew. * @return
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:478
↓ 2 callers
Method
skewY
* Returns a new SVGMatrix instance that specifies a skew transformation along Y-Axis by the given angle. * * @param angle Angle amount in degrees
packages/happy-dom/src/svg/SVGMatrix.ts:280
↓ 2 callers
Method
skewYSelf
* Set self to be specified as a skew transformation along Y-Axis by the given angle. * * @param angle Angle amount in degrees to skew. * @return
packages/happy-dom/src/dom/dom-matrix/DOMMatrix.ts:489
↓ 2 callers
Method
splitByComma
* Splits by comma while respecting nested parentheses. * * @param value Value to split. * @returns Array of parts.
packages/happy-dom/src/css/declaration/property-manager/CSSStyleDeclarationValueUtility.ts:14
↓ 2 callers
Method
splitText
* Breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings. * * @see https://dom.spec.whatwg.org/#d
packages/happy-dom/src/nodes/text/Text.ts:86
↓ 2 callers
Method
start
* Starts the server.
packages/@happy-dom/server-renderer/src/ServerRendererServer.ts:48
↓ 2 callers
Method
startTask
* Starts a task. * * @returns Task ID.
packages/happy-dom/src/nodes/document/DocumentReadyStateManager.ts:33
↓ 2 callers
Method
step
* Returns step. * * @returns Step.
packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts:533
↓ 2 callers
Method
stopPropagation
* Stops propagation.
packages/happy-dom/src/event/Event.ts:219
↓ 2 callers
Method
streamToFormData
* Returns form data. * * @param window Window. * @param response Response object containing a body stream. * @param response.body Body stream.
packages/happy-dom/src/fetch/multipart/MultipartFormDataParser.ts:28
↓ 2 callers
Method
takeRecords
* Returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation q
packages/happy-dom/src/mutation-observer/MutationObserver.ts:160
↓ 2 callers
Method
terminate
*
packages/@happy-dom/server-renderer/src/utilities/BrowserWindowPolyfill.ts:95
↓ 2 callers
Method
text
* Returns text. * * @returns Text.
packages/happy-dom/src/fetch/Response.ts:218
↓ 2 callers
Method
timeout
* Returns an AbortSignal that will automatically abort after a specified * time. * * @param [time] Time in milliseconds. * @returns AbortSigna
packages/happy-dom/src/fetch/AbortSignal.ts:133
↓ 2 callers
Method
toLocaleString
* Returns `[object NodeList]`. * * @returns `[object NodeList]`.
packages/happy-dom/src/nodes/node/NodeList.ts:145
↓ 2 callers
Method
toPixels
* Convert to pixels. * * @param value Value. * @returns Value in pixels.
packages/happy-dom/src/match-media/MediaQueryItem.ts:332
↓ 2 callers
Method
transferToImageBitmap
* Creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. * * The image in the OffscreenCanvas is replaced wit
packages/happy-dom/src/canvas/OffscreenCanvas.ts:124
↓ 2 callers
Method
type
* Returns type. * * @returns Type.
packages/happy-dom/src/event/Event.ts:112
↓ 2 callers
Method
validateSchema
* Validates request redirect. * * @throws DOMException * @param request * @param redirect Redirect.
packages/happy-dom/src/fetch/utilities/FetchRequestValidationUtility.ts:118
↓ 2 callers
Method
values
* Returns an iterator, allowing you to go through all values of the key/value pairs contained in this object.
packages/happy-dom/src/dom/DOMTokenList.ts:213
↓ 1 callers
Method
#assignedElements
* Returns assigned elements. * * @param name Name. * @param [options] Options. * @param [options.flatten] A boolean value indicating whether t
packages/happy-dom/src/nodes/html-slot-element/HTMLSlotElement.ts:213
↓ 1 callers
Method
#callDispatchEventListeners
* Handles dispatch event listeners. * * @param event Event.
packages/happy-dom/src/event/EventTarget.ts:272
↓ 1 callers
Method
#computeOffsets
* * @param keyframes
packages/happy-dom/src/animation/KeyframeEffect.ts:254
↓ 1 callers
Method
#connect
* Connects the WebSocket. * * @param url URL. * @param protocols Protocols.
packages/happy-dom/src/web-socket/WebSocket.ts:231
↓ 1 callers
Method
#convertToArrayBuffer
* Converts a Node.js Buffer to an ArrayBuffer. * * @param buffer Node.js Buffer. * @returns ArrayBuffer.
packages/happy-dom/src/web-socket/WebSocket.ts:391
↓ 1 callers
Method
#evaluateImportMap
* Evaluates an import map. * * @param source Source.
packages/happy-dom/src/nodes/html-script-element/HTMLScriptElement.ts:449
↓ 1 callers
Method
#evaluateModule
* Evaluates a module. * * @param source Source.
packages/happy-dom/src/nodes/html-script-element/HTMLScriptElement.ts:413
↓ 1 callers
Method
#evaluateScript
* Evaluates a script. * * @param code Code.
packages/happy-dom/src/nodes/html-script-element/HTMLScriptElement.ts:525
↓ 1 callers
Method
#getAttributes
* Returns attributes as a string. * * @param element Element. * @param elementPrefix Element prefix. * @param inheritedDefaultNamespace Inheri
packages/happy-dom/src/xml-serializer/XMLSerializer.ts:211
↓ 1 callers
Method
#getCacheKey
* Returns the cache key for the given request. * * @param url Request URL. * @param headers Request headers. * @param statusCode Response stat
packages/@happy-dom/server-renderer/src/ServerRendererServer.ts:329
↓ 1 callers
Method
#getDisplaySize
* Returns display size. * * @returns Display size.
packages/happy-dom/src/nodes/html-select-element/HTMLSelectElement.ts:770
↓ 1 callers
Method
#getElementPrefix
* Returns namespace prefixes. * * @param element Element. * @param namespacePrefixes Inherited namespace prefixes. * @returns Element prefix.
packages/happy-dom/src/xml-serializer/XMLSerializer.ts:168
↓ 1 callers
Method
#getNamespacePrefixes
* Returns namespace prefixes. * * @param element Element. * @param inheritedNamespacePrefixes Inherited namespace prefixes. * @returns Namespa
packages/happy-dom/src/xml-serializer/XMLSerializer.ts:138
↓ 1 callers
Method
#getNetworkIP
* Returns the network IP address of the server. * * @returns The network IP address.
packages/@happy-dom/server-renderer/src/ServerRendererServer.ts:306
↓ 1 callers
Method
#goThroughDispatchEventPhases
* Goes through dispatch event phases. * * @param event Event.
packages/happy-dom/src/event/EventTarget.ts:212
↓ 1 callers
Method
#importNode
* Imports a node. * * @param node Node.
packages/happy-dom/src/nodes/document/Document.ts:2291
↓ 1 callers
Method
#loadCache
* Loads cache from disk. * * @param browser Browser.
packages/@happy-dom/server-renderer/src/ServerRendererBrowser.ts:116
↓ 1 callers
Method
#loadDataUrl
* Loads the image from the given data URL. * * @param src Source. * @returns True if the image was loaded, false otherwise.
packages/happy-dom/src/nodes/html-image-element/HTMLImageElement.ts:420
↓ 1 callers
Method
#loadUrlSource
* Loads the image from the given source. * * @param src Source.
packages/happy-dom/src/nodes/html-image-element/HTMLImageElement.ts:446
↓ 1 callers
Method
#mergeConstraints
* Merges two objects. * * @param source Target. * @param target Source.
packages/happy-dom/src/nodes/html-media-element/MediaStreamTrack.ts:170
↓ 1 callers
Method
#normalizeFormat
* Normalizes the format according to the HTML spec. * * @param format Format to normalize. * @returns Normalized format.
packages/happy-dom/src/event/DataTransfer.ts:103
↓ 1 callers
Method
#onConnectionClosed
* Called when the connection has been closed. * * @param code Code. * @param reason Reason.
packages/happy-dom/src/web-socket/WebSocket.ts:321
↓ 1 callers
Method
#onConnectionEstablished
* Called when the connection has been established. * * @see https://html.spec.whatwg.org/multipage/web-sockets.html#feedback-from-the-protocol
packages/happy-dom/src/web-socket/WebSocket.ts:307
← previous
next →
501–600 of 4,499, ranked by callers