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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@andrewfeasel/jdom

v1.0.3

Published

Lightweight, portable DOM manipulation utilities

Readme

INTRO

jDOM is a nice little library that makes DOM manipulation easier, it works in the browser, and it is compatible with the "jsdom" package on NPM.

INSTALLATION

Run this command to install jDOM:

npm install @andrewfeasel/jdom

IMPORTING

jDOM uses ES Module syntax, so put type="module" in package.json, or in your script tag. Imports look like this:

import $J from "./jDOM.js";

USAGE

$J.setWindow(window: Window): void

Sets jDOM's internal window to a given Window object. Only useful in Node.js and when using "jsdom", useless for the browser. setWindow() must be called before any other methods are called in Node.

$J.parse(data: string, mimeType: string): Document

Parses the serialized data, and returns a Document. Valid types are "text/html" and "text/xml".

$J.create(htmlText: string): HTMLElement

Creates an HTML element from the text.

$J.ready(eventCallback: function): void

Executes the callback when the "DOMContentLoaded" event fires.

$J.id(elementId: string): Element | null

jDOM shorthand for document.getElementByid()

$J.one(selector: string, base?: Element): Element | null

Identical to document.querySelector, but you can optionally specify which object you call querySelector on: defaults to document.

$J.all(selector: string, base?: Element): Array<Element> | null

document.querySelectorAll(), but with an optional base, and returns an Array of elements.

CONTRIBUTING

Make a pull request, and I will happily review it. I am always open for pull requests, because I value your ideas and contributions, and I value the open-source community.

LICENSE

MIT license applies here.