tangye1234 / starkit

A common and universal js utility pack for javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starkit

A universal common es module utils/helpers for js projects.

Packages included

@starkit/eslint-config
eslint version

This package includes eslint tempalte for normal typescript or react projects.

@starkit/tsconfig
tsconfig version

This package includes tsconfig template for basic / node / react / nextjs projects.

@starkit/utils
utils version

This package includes common utils for js projects with full powered typedef.

@starkit/async
async version

This package includes some useful async utils, such as retry / runloop / sleep etc.

@starkit/lifecycle
lifecycle version

This package is a collection of lifecycle function, like disposable system and many related helpers etc.

@starkit/event
event version

This package use a very useful utils for DOM event, such as addEvent / drag factory / event factory / addInterception etc.

@starkit/react-hook
react hook version

This package includes some universal hooks like useCallbackRef, usePrevious, isomorphic useLayoutEffect

And some hooks which benifits with a smart type inference system like useDebounce, useDebouceState and useThrottle

And also hooks which function perfectly well in react 18 strict dev mode like useDisposable and useMount.

About

A common and universal js utility pack for javascript

License:MIT License


Languages

Language:TypeScript 96.9%Language:JavaScript 3.1%