@qingshaner/utility
v0.6.0
Published
Some utilities for JavaScript & TypeScript projects
Readme
🛠️ Utility
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/utilityUsage
// 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.
