@bassist/utils
TypeScript icon, indicating that this package has built-in type declarations

0.16.0 • Public • Published

@bassist/utils

GitHub stars

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

See: Documentation of utils

Release Notes

Please refer to CHANGELOG for details.

License

MIT License © 2022-PRESENT chengpeiquan

Readme

Keywords

Package Sidebar

Install

npm i @bassist/utils

Weekly Downloads

3,673

Version

0.16.0

License

MIT

Unpacked Size

138 kB

Total Files

8

Last publish

Collaborators

  • chengpeiquan