npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@proxtx/dom

v1.1.4

Published

simulates the html dom (proxtx/html)

Downloads

12

Readme

dom

simulates the html dom (proxtx/html)

Done (Stopping Development for now because you can easily operate a dom with these methods and if you really need to do something this implementation isn't capable of you can edit the elementList yourself.)

Dom.getElementById Dom.getElementsByClassName Dom.body Dom.createElement Dom.createTextNode Dom.documentElement Element.innerText Element.innerHTML Element.style.* Element.appendChild Element.children Attributes Element.removeChild

Future Plans:

Property / Method Description

~~document.activeElement Returns the currently focused element in the document~~ ~~document.addEventListener() Attaches an event handler to the document~~

document.adoptNode() Adopts a node from another document

document.anchors Returns a collection of all a elements in the document that have a name attribute

document.applets Returns a collection of all applet elements in the document

~~document.baseURI Returns the absolute base URI of a document~~

document.body Sets or returns the document's body (the body element)

~~document.close() Closes the output stream previously opened with document.open()~~ ~~document.cookie Returns all name/value pairs of cookies in the document~~

document.createAttribute() Creates an attribute node

~~document.createComment() Creates a Comment node with the specified text~~

document.createDocumentFragment() Creates an empty DocumentFragment node

document.createElement() Creates an Element node

document.createTextNode() Creates a Text node

~~document.doctype Returns the Document Type Declaration associated with the document~~

document.documentElement Returns the Document Element of the document (the html element)

~~document.documentMode Returns the mode used by the browser to render the document~~ ~~document.documentURI Sets or returns the location of the document~~ ~~document.domain Returns the domain name of the server that loaded the document~~ ~~document.domConfig Obsolete. Returns the DOM configuration of the document~~

document.embeds Returns a collection of all embed elements the document

document.forms Returns a collection of all form elements in the document

document.getElementById() Returns the element that has the ID attribute with the specified value

document.getElementsByClassName() Returns a NodeList containing all elements with the specified class name

document.getElementsByName() Returns a NodeList containing all elements with a specified name

document.getElementsByTagName() Returns a NodeList containing all elements with the specified tag name

~~document.hasFocus() Returns a Boolean value indicating whether the document has focus~~

document.head Returns the head element of the document

document.images Returns a collection of all img elements in the document

~~document.implementation Returns the DOMImplementation object that handles this document~~

document.importNode() Imports a node from another document

document.inputEncoding Returns the encoding, character set, used for the document

~~document.lastModified Returns the date and time the document was last modified~~

document.links Returns a collection of all a and area elements in the document that have a href attribute

document.normalize() Removes empty Text nodes, and joins adjacent nodes

document.normalizeDocument() Removes empty Text nodes, and joins adjacent nodes

~~document.open() Opens an HTML output stream to collect output from document.write()~~ ~~document.querySelector() Returns the first element that matches a specified CSS selector(s) in the document~~ ~~document.querySelectorAll() Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document~~ ~~document.readyState Returns the (loading) status of the document~~ ~~document.referrer Returns the URL of the document that loaded the current document~~ ~~document.removeEventListener() Removes an event handler from the document (that has been attached with the addEventListener() method)~~

document.renameNode() Renames the specified node

document.scripts Returns a collection of script elements in the document

~~document.strictErrorChecking Sets or returns whether error-checking is enforced or not~~

document.title Sets or returns the title of the document

~~document.URL Returns the full URL of the HTML document~~

document.write() Writes HTML expressions or JavaScript code to a document

document.writeln() Same as write(), but adds a newline character after each statement

http://www-db.deis.unibo.it/courses/TW/DOCS/w3schools/jsref/dom_obj_document.asp.html