@everystate/aliases
v1.0.3
Published
EveryState Aliases: Ergonomic single-character and short-name DOM aliases for vanilla JavaScript
Maintainers
Readme
@everystate/aliases v1.0.3
Ergonomic DOM aliases for vanilla JavaScript
Single-character and short-name DOM utilities that stay close to the metal with zero abstraction penalty.
Installation
npm install @everystate/aliasesQuick Start
import { $, qsa, on, attr } from '@everystate/aliases';
// $ = getElementById
const btn = $('#myButton');
// qsa = querySelectorAll
const items = qsa('.item');
// on = addEventListener
on(btn, 'click', () => console.log('clicked'));
// attr = setAttribute/getAttribute
attr(btn, 'disabled', true);Features
- Minimal wrappers - Thin layer over native DOM APIs
- Zero dependencies - Pure JavaScript
- TypeScript support - Full type definitions
- Tree-shakeable - Import only what you need
Ecosystem
| Package | Description | License |
|---|---|---|
| @everystate/aliases | Ergonomic single-character and short-name DOM aliases for vanilla JS | MIT |
| @everystate/core | Path-based state management with wildcard subscriptions and async support. Core state engine (you are here). | MIT |
| @everystate/css | Reactive CSSOM engine: design tokens, typed validation, WCAG enforcement, all via path-based state | MIT |
| @everystate/examples | Example applications and patterns | MIT |
| @everystate/perf | Performance monitoring overlay | MIT |
| @everystate/react | React hooks adapter: usePath, useIntent, useAsync hooks and EventStateProvider | MIT |
| @everystate/renderer | Direct-binding reactive renderer: bind-*, set, each attributes. Zero build step | MIT |
| @everystate/router | SPA routing as state | MIT |
| @everystate/test | Event-sequence testing for UIstate stores. Zero dependency. | MIT |
| @everystate/view | State-driven view: DOMless resolve + surgical DOM projector. View tree as first-class state | MIT |
| @everystate/vue | Vue 3 composables adapter: provideStore, usePath, useIntent, useWildcard, useAsync | MIT |
| @everystate/types | Typed dot-path autocomplete for EveryState stores (you are here) | MIT |
License
MIT © Ajdin Imsirovic
