@linxs/toolkit
v0.6.0
Published
常用工具函数包
Readme
@linxs/toolkit
A comprehensive TypeScript utility library providing commonly used functions for web development.
Installation
npm install @linxs/toolkit
# or
yarn add @linxs/toolkit
# or
pnpm add @linxs/toolkitFeatures
- 🚀 TypeScript Support
- 📦 Tree-shakeable
- 🔧 Browser Compatible
- 🧪 Well Tested
- 📝 Well Documented
Modules
📋 Clipboard
Cross-browser clipboard utility supporting text and image copying with modern Clipboard API and fallback support. Learn more about Clipboard
🔐 Crypto
RSA public key encryption using Web Crypto API for secure data transmission. Learn more about Crypto
🎨 Design Patterns
Common design patterns implementation including Observer and Pub/Sub patterns. Learn more about Design Patterns
👆 Fingerprint
Browser fingerprinting utilities for visitor identification. Learn more about Fingerprint
📝 Logger
A flexible logging utility with support for multiple log levels, timestamps, namespaces, and formatted output. Learn more about Logger
💾 LRU Cache
Least Recently Used (LRU) cache implementation with size limits and automatic eviction. Learn more about LRU Cache
🔒 Mask
Data masking functions for protecting sensitive information with customizable placeholders. Learn more about Mask
✅ Regex
Regular expressions for validating various data formats (phone, email, ID card, etc.). Learn more about Regex
🔒 Storage
Enhanced Web Storage API with instance isolation, complex data types, expiration, global operations, and comprehensive event system. Learn more about Storage
⏱️ Time
Time and date utilities for formatting, parsing, and calculations. Learn more about Time
🎯 Trading
Trading-related calculations and utilities. Learn more about Trading
🔍 Utils
Common utility functions for arrays, strings, types, and more. Learn more about Utils
Contributing
- Fork it!
- Create your feature branch:
git checkout -b feature/my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin feature/my-new-feature - Submit a pull request
License
MIT © Lin.xs
