simple utils facade for javascripThe simple utils Facade for javascript/typescript,the only utils you need for frontEnd application
简体中文 | English
✅ 🔧 TypeScript First - Complete type definitions and type safety
✅ 🎯 Modular Design - Organized by functional domains, easy to use and maintain
✅ 🚀 Zero Configuration - Works out of the box, no additional configuration needed
✅ 📚 Complete Documentation - Detailed API documentation and usage examples
✅ 🧪 Test Coverage - Complete unit tests ensure code quality
☑️ 📦 Tree-shaking Friendly - Support on-demand imports to reduce bundle size
# npm
npm install @wolforest/jscommon
# yarn
yarn add @wolforest/jscommon
# pnpm
pnpm add @wolforest/jscommon
// Import the required utility functions
import { ArrayUtil, StringUtil, DateUtil } from '@wolforest/jscommon';
// Array operations
const numbers = [1, 2, 3, 4, 5];
const doubled = ArrayUtil.map(numbers, x => x * 2); // [2, 4, 6, 8, 10]
// String operations
const text = 'hello world';
const capitalized = StringUtil.capitalize(text); // 'Hello world'
// Date operations
const now = new Date();
const formatted = DateUtil.format(now, 'YYYY-MM-DD HH:mm:ss');
For detailed documentation, please visit:
- Core Package README - Complete API documentation
- Examples - Usage examples for different frameworks