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

jumon

v1.1.0

Published

JUst html element MONitor

Readme

JUMON.js - JUst html element MONitor

JUMON.js is simple DOM access library. This enables easily and readable access to DOM element from your code by binding DOM elements' attribute to Jumon object.

How to use

1. Add 'jumon-*' attribute to HTML elements

<form>
  <input value="50" jumon-bind="width" jumon-type="Number">
  <input value="100" jumon-bind="height" jumon-type="Number">
</form>

2. import Jumon class and create instance

import { Jumon } from './jumon.js';
parameter = new Jumon();

3. access element's value via Jumon instance

// read text box's values
console.log(parameter.width);
console.log(parameter.height);

// update text box's value
parameter.width = 100;
parameter.height = 200;

jumon-* attribute references

jumon-bind="propertyName"

Bind the element's value to Jumon instance's .propertyName property.

Example:

<select jumon-bind="count">
  <option value="1" selected>1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>
parameter = new Jumon();
console.log(parameter.count); // output: "1"

jumon-bind="attribute:propertyName"

Bind the element's speficied attribute to Jumon instance's .propertyName property.

Example:

<a href="" jumon-bind="href:theUrl">LINK</a>
</select>
parameter = new Jumon();
parameter.theUrl = 'https://example.com/'; // set the URL to `href` attribute

jumon-type="Number"

Enable auto type conversion to Number. If value is not a number, conversion result is "NaN".

Example:

<select jumon-bind="count" jumon-type="Number">
  <option value="1" selected>1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>
parameter = new Jumon();
console.log(parameter.count); // output: 1

jumon-bind-to="selector[attribute]"

Bind the element's value to another element's attribue.

Example:

<input class="ratio" value="100" jumon-bind-to="#frame[height]">
<iframe src="https://example.com/" height="0"></iframe>

jumon-bind-to="converter:selector[attribute]"

Bind the element's value to another element's attribue. the value is given to converter function, and then set its return value to the selected element's attribute.

Example:

<input class="ratio" value="100" jumon-bind-to="calcSize:#frame[height]">
<iframe src="https://example.com/" height="0"></iframe>
parameter = new Jumon();
parameter.calcSize(val => val * 2); // set the iframe's height to twice the value

jumon-bind-to="attribute:converter:selector[attribute]"

Bind the element's speficied attribute to another element's attribue. converter, selector, and [attrobute] are omittable.

  • If converter is blank, the value is not converted.
  • If [attribute] is blank, bind to the textContent of the element which queried by the selector.
  • If selector[attribute] is blank, bind to the textContent of the element itself.

Example:

<a href="" jumon-bind="href:theUrl" jumon-bind-to="href::"></a>
</select>
parameter = new Jumon();
parameter.theUrl = 'https://example.com/'; // set the URL to `href` attribute and textContent

jumon-bind-renderer="renderMethod:propertyName"

Append the HTML which render method returns as the element's child.

Example:

<div jumon-bind-renderer="renderer:items">
</div>
parameter = new Jumon();
parameter.renderer = (param, index) => {
  return `<div>${index}: ${param.title}</div>`;
}
parameter.items = [
  {title: "foo"},
  {title: "bar"},
];

jumon-listen="click:listenerMethod"

Add EventListner to the element.

Example:

<button jumon-listen="click:update">update</button>
parameter = new Jumon();
parameter.update = (event) {
  // When the button is clicked, this method is invoked.
};

Copyright

2022, Hiromichi Matsushima (hylom) [email protected].

License

MIT License.