Registry / devops / jymin
library0.5.1jsnpmunverified

Jymin (JavaScript You Minify) is a lightweight, minifier-friendly JavaScript library designed to be concatenated with application code and minified together, ensuring that only used functions survive minification. Current stable version is 0.5.1, with irregular releases. It offers browser utilities (DOM manipulation, event handling, Ajax, data storage, cookie management) and aims to minimize download size and latency, distinguishing itself from jQuery/Zepto by focusing on minifiability and speed over feature breadth. No dependencies, primarily for browser environments.

npm install jymin
INSTALL
IMPORT
SIG · JYMIN
J
jymin
devopsjavascriptv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Jymin
import Jymin from 'jymin'
const Jymin = require('jymin')
ESM recommended; CommonJS may not work with all bundlers.
getElement
import { getElement } from 'jymin'
import { getElement } from 'jymin'
Named exports for individual utilities.
Emitter
import { Emitter } from 'jymin'
const { Emitter } = require('jymin')
Emitter is a constructor for event emitters.

Basic usage: get an element, set HTML, and bind a click handler.

import { getElement, setHtml, bindClick } from 'jymin'; // Get an element by ID (no hash needed) const el = getElement('myId'); // Set its HTML content setHtml(el, '<p>Hello Jymin!</p>'); // Bind a click handler bindClick(el, () => { console.log('Clicked!'); });
Debug
Known issues
gotchagetElement does not use '#' prefix; pass ID directly.
fix
Use getElement('myId') instead of getElement('#myId').
affects: all
deprecatedFunctions like 'forEach', 'each' may be renamed or removed.
fix
Check docs for alternative native methods or use polyfill.
affects: >=0.5.0
gotchaEmitter does not support 'once' method; use 'on' and manually unbind.
fix
Implement custom once wrapper using 'on' and 'off'.
affects: all
Errors
Common errors & fixes
Uncaught ReferenceError: Jymin is not defined
Missing import or incorrect module bundler configuration.
fix
Use 'import Jymin from 'jymin'' in ESM or ensure global script tag is loaded.
TypeError: getElement is not a function
Importing as default when it's a named export.
fix
Use { getElement } in the import statement.
Cannot read property 'classList' of null
Element not found; getElement returns null if no match.
fix
Check that the element ID exists in the DOM.
Upgrade
Version history
0.5.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
packagejymin
jymin — npm install jymin · libregistry