@benjos/spices
v1.0.1
Published
Collection of TypeScript common constant files for personal projects
Readme
@benjos/spices
Collection of TypeScript common constant files for personal projects.
Installation
npm install @benjos/spicesRequirements: TypeScript ≥ 5.0.0
Available Constants
DomEvent
Type-safe DOM event constants including:
- Mouse Events:
CLICK,DOUBLE_CLICK,MOUSE_DOWN,MOUSE_UP,MOUSE_MOVE, etc. - Pointer Events:
POINTER_DOWN,POINTER_MOVE,POINTER_UP, etc. - Touch Events:
TOUCH_START,TOUCH_MOVE,TOUCH_END, etc. - Keyboard Events:
KEY_DOWN,KEY_UP,KEY_PRESS - Focus Events:
FOCUS,BLUR,FOCUS_IN,FOCUS_OUT - Form Events:
CHANGE,INPUT,SUBMIT,RESET - Drag & Drop:
DRAG,DRAG_START,DROP, etc. - Media Events:
PLAY,PAUSE,ENDED, etc. - Animation Events:
ANIMATION_START,ANIMATION_END, etc. - Transition Events:
TRANSITION_START,TRANSITION_END, etc. - And many more...
KeyboardConstant
Comprehensive keyboard key constants:
- All letter keys:
AthroughZ - Digit keys:
DIGIT_0throughDIGIT_9 - Function keys:
F1throughF12 - Navigation keys:
ARROW_UP,ARROW_DOWN,ARROW_LEFT,ARROW_RIGHT - Special keys:
ENTER,ESCAPE,TAB,BACKSPACE, etc. - Modifier keys:
SHIFT,CONTROL,ALT - And more...
License
ISC
