Document some lightweight front-end libraries (wheel building). The main features is "simple, universal, no dependence".
记录一些轻量级的前端库 (造轮子)。👉 主打 "简洁、通用、无依赖"。
全部来自工作中开发的源码,非常适合项目中实现一些简单功能。
Package | Version | Description |
---|---|---|
@jotter/animator | Animator is an animation playback controller. | |
@jotter/drag | Lightweight "drag-and-drop" library of draggable elements within a specified range. | |
dom-event-emit | A type-safe, flexible DOM event emitter for browser environments. | |
@jotter/emitter | Simple and modern event emitter library. | |
@jotter/websocket | Modern and useful WebSocket wrapper, with standard WebSocket API. | |
@jotter/dateformat | A date/time formatting function. | |
@jotter/from-now | A relative time formatting functions. | |
@jotter/position | Positioning a DOM element relative to another DOM element. |
MIT
Contributions are welcome! Please feel free to submit a Pull Request.