npm.io
1.0.1 • Published 1 month ago

@qingshaner/utility

Licence
ISC
Version
1.0.1
Deps
3
Size
4 kB
Vulns
0
Weekly
0

Utility

JSR package NPM Version LICENSE unit-test Linted with Biome Static Badge

This is a utility package for JavaScript, including client, server, and shared utilities.

  • @qingshaner/utility-client: Utility functions that depend on the server-side.
  • @qingshaner/utility-server: Utility functions that depend on the browser client.
  • @qingshaner/utility-shared: Utility functions shared between the browser and the server.

Install

npm i -P @qingshaner/utility

Usage

// client.ts

import * as sharedUtils from '@qingshaner/utility'
import * as clientUtils from '@qingshaner/utility/client'

// ... Your code will run in browser environment.

// server.ts

import * as sharedUtils from '@qingshaner/utility'
import * as serverUtils from '@qingshaner/utility/server'

// ... Your code will run in nodejs or other server side environment.

Keywords