8000 GitHub - wolforest/jscommon: The simple utils facade for javascript/typescript,the only utils you need for frontEnd application
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wolforest/jscommon

Repository files navigation

@wolforest/jscommon

simple utils facade for javascripThe simple utils Facade for javascript/typescript,the only utils you need for frontEnd application

简体中文 | English

✨ Features

✅ 🔧 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

📦 Installation

# npm
npm install @wolforest/jscommon

# yarn
yarn add @wolforest/jscommon

# pnpm
pnpm add @wolforest/jscommon

🚀 Quick Start

// 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');

📚 Documentation

For detailed documentation, please visit:

🔗 Links

☎️ Contact us

About

The simple utils facade for javascript/typescript,the only utils you need for frontEnd application

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0