open-index/open-npm huggingface dataset:
npm package: @linxs/toolkit
Description: 常用工具函数包
Author: Lin.xs
Latest version: 0.5.4

# @linxs/toolkit

A comprehensive TypeScript utility library providing commonly used functions for web development.

## Installation

```bash
npm install @linxs/toolkit
# or
yarn add @linxs/toolkit
# or
pnpm add @linxs/toolkit
```

## Features

- 🚀 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](./docs/clipboard.md)

### 🔐 Crypto
RSA public key encryption using Web Crypto API for secure data transmission.
[Learn more about Crypto](./docs/crypto.md)

### 🎨 Design Patterns
Common design patterns implementation including Observer and Pub/Sub patterns.
[Learn more about Design Patterns](./docs/design-patterns.md)

### 👆 Fingerprint
Browser fingerprinting utilities for visitor identification.
[Learn more about Fingerprint](./docs/fingerprint.md)

### 📝 Logger
A flexible logging utility with support for multiple log levels, timestamps, namespaces, and formatted output.
[Learn more about Logger](./docs/logger.md)

### 💾 LRU Cache
Least Recently Used (LRU) cache implementation with size limits and automatic eviction.
[Learn more about LRU Cache](./docs/lru-cache.md)

### 🔒 Mask
Data masking functions for protecting sensitive information with customizable placeholders.
[Learn more about Mask](./docs/mask.md)

### ✅ Regex
Regular expressions for validating various data formats (phone, email, ID card, etc.).
[Learn more about Regex](./docs/regex.md)

### 🔒 Storage
Enhanced Web Storage API with instance isolation, complex data types, expiration, global operations, and comprehensive event system.
[Learn more about Storage](./docs/storage.md)

### ⏱️ Time
Time and date utilities for formatting, parsing, and calculations.
[Learn more about Time](./docs/time.md)

### 🎯 Trading
Trading-related calculations and utilities.
[Learn more about Trading](./docs/trading.md)

### 🔍 Utils
Common utility functions for arrays, strings, types, and more.
[Learn more about Utils](./docs/utils.md)

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b feature/my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin feature/my-new-feature`
5. Submit a pull request

## License

MIT © Lin.xs
npm package: @linxuewen/eslint-config
Description: ESLint config
Author: linxuewen
Latest version: 0.3.2

# @linxuwen/eslint-config 
[![CI][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript_code style][code-style-image]][code-style-url]

[npm-url]: https://npmjs.org/package/@linxuwen/eslint-config

<div align='left'>
<a href="README.md">English</a> | <b>简体中文</b>
<br>
</div>

## 特性

- "双引号"，必须加分号;
- 格式化的自动修复（旨在独立使用，不需要Prettier）。
- TypeScript，Vue开箱即用
- 对 JSON、YAML、Markdown也支持格式化
- 导入自动排序，需要尾随逗号，更干净的提交差异
- 合理的默认值，最佳实践，只有一行的配置

## 如何使用

可共享的配置被设计在`.eslintrc`文件的`extends`。
你可以了解更多关于
[Shareable Configs](http://eslint.org/docs/developer-guide/shareable-configs) 在
官方ESLint网站上

###  运行以下命令开始使用:

### 安装

```bash
pnpm add -D eslint @linxuewen/eslint-config
```

### 在你的`.eslintrc`文件中加入这个。

```json
{
  "extends": "@linxuewen"
}
```

> 你通常不需要`.eslintignore`，因为它已经由预设提供了。

### 为package.json添加脚本配置

例如:

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}
```

###  在Vscode中 配置自动修复

创建 `.vscode/settings.json`

```json
{
  "prettier.enable": false,
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
```

### 自定义规则

在你的`.eslintrc`文件中添加你喜欢的规则。

```json
{
  "extends": [
    "@linxuewen"
  ],
  "rules": {
    "vue/component-tags-order": ["error", {
      "order": ["template", "script", "style"]
    }]
  }
}
```
### TypeScript Aware Rules

当在项目根目录中找到`tsconfig.eslint.json`时，将启用Type Aware Rules

## 致谢
本项目基于 [@antfu/eslint-config](https://github.com/antfu/eslint-config)


## 开源协议

[MIT](./LICENSE) License &copy; 2019-PRESENT