0.16.0 • Published 3 months ago
@bassist/utils v0.16.0
@bassist/utils
Opinionated collection of common JavaScript / TypeScript utils by @chengpeiquan .
- 🌳 Fully tree shakeable
- 💪 Type Strong
- 💡 No bundler required
- 🦄 SSR Friendly
Usage
With npm(or yarn, or pnpm):
npm install @bassist/utils
In .js
/ .ts
or other files:
import { isMobile } from '@bassist/utils'
if (isMobile()) {
// do something...
}
With CDN:
<script src="https://cdn.jsdelivr.net/npm/@bassist/utils"></script>
<script>
// All methods are on the `Utils` variable
console.log(Utils)
if (Utils.isMobile()) {
// do something...
}
</script>
Documentation
Release Notes
Please refer to CHANGELOG for details.
License
MIT License © 2022-PRESENT chengpeiquan
0.16.0
3 months ago
0.15.0
3 months ago
0.12.0
10 months ago
0.13.0
8 months ago
0.14.0
7 months ago
0.11.0
1 year ago
0.11.1
1 year ago
0.11.2
1 year ago
0.10.0
1 year ago
0.9.0
1 year ago
0.8.0
1 year ago
0.7.1
1 year ago
0.7.0
1 year ago
0.6.0
1 year ago
0.5.1
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.3.0
1 year ago
0.2.0
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago