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

the-book-of-hermes

v0.0.60

Published

Lightweight Javascript DOM manipulation library.

Downloads

161

Readme

The Book Of Hermes

Lightweight Javascript DOM manipulation library

The Hermetic documentation can be veiwed below. Anyone is welcome to fork and extend this library, or if you have any feature requests just submit an issue!

To add this sacred book to your library simply clone this REPO or you can use Bower (recommended) or NPM (also recommended):

bower install the-book-of-hermes

npm install the-book-of-hermes

DOM selector

h('#myID'); //gets selector

For Loop

Hermes.ouroboros(myArray, function(cb){

console.log(cb);

});

Event listener

Hermes can listen to any type of Event - "mouseover", "click", "mouseout", "mousemove"

h('.selector').listen(eventName, function(e){console.log(e)})

GET Call

Hermes.theft(url, function(data){

console.log(data);

});

POST JSON Data

Hermes.give = function(url, data, cb) {

console.log(cb)

}

Effects

This will fade your element in, just pass in your element as a paramater.

Basic DOM manipulation:

Hide your element

h('.selector').conceal();

Show your element

h('.selector').reveal();

Show & Hide your element

h('.selector').switch();

Remove element from DOM

h('.selector').vanquish();

Add multiple child elements to DOM

var html = [{

 "node": "div",

 "class": "row-Dyad",

"text": "I'm a child node"

}, {

 "node": "div",

"class": "col-Dyad tetrad-four",

"text": "I'm a child node of a child node"

}]

h('.selector').multiply(html);

Add a class to your element

h('.selector').addClass('class2add');

Read the text of your element

h('.selector').readText();

Erase the text of your element

h('.selector').eraseText();

Add an element with a class

h('.selector').add(elementType, elementClass);

Inject HTML to DOM

h('.selector').manifestAll('< div >Hermetic Dyanmic Element< /div >')

Check if your element has a particular class

h('.selector').hasClass('classNameToTest');

Get CSS value of element, won't return inline styles

h('.selector').setCSS('inlineCSSstring');

Hermes has access to cookies

Set a Cookie

Hermes.stealCookie(cookieName, cookieValue, daysTillExp);

Get a Cookie

Hermes.getCookieJar(cookieName);

Check for a Cookie

Hermes.checkCookieJar(checkForCookie);

Delete a cookie

Hermes.eatCookie(cookieToDelete);

Hermes also has access to Local Storage

Set Local Storage

Hermes.meetsYourBrowser(name, value);

Get Local Storage

Hermes.remembersYou(localstorageKeyName);

Delete Local Storage Key

Hermes.forgotYou(localStorageName);