Opinionated collection of common JavaScript / TypeScript utils by @chengpeiquan .
npm install @bassist/utilsOpinionated collection of common JavaScript / TypeScript utils by @chengpeiquan .
- 🌳 Fully tree shakeable
- 💪 Type Strong
- 💡 No bundler required
- 🦄 SSR Friendly
With npm(or yarn, or pnpm):
``bash`
npm install @bassist/utils
In .js / .ts or other files:
`ts
import { isMobile } from '@bassist/utils'
if (isMobile()) {
// do something...
}
`
With CDN:
`html``
Please refer to CHANGELOG for details.
MIT License © 2022-PRESENT chengpeiquan