百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

super-utils-plus

> 编程语言
开源

SuperUtilsPlus 是 Lodash 的优秀替代方案,具有性能更高、支持 TypeScript 以及更好的开发者体验。特性 - 完整的 TypeScript 类型支持 - 完整的 ES6 语法支持 - 完整的 ES7 语法支持 - 完整的 ES8 语法支持 - 完整的 ES9 语法支持 - 完整的 ES2015 语法支持 - 完整的 ES2016 语法支持 - 完整的 ES2017 语法支持 - 完整的 ES2018 语法支持 - 完整的 ES2019 语法支持 - 完整的 ES2020 语法支持 - 完整的 ES2021 语法支持 - 完整的 ES2022 语法支持 - 完整的 ES2023 语法支持 - 完整的 ES2024 语法支持 - 完整的 ES2025 语法支持 - 完整的 ES2

195 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

SuperUtilsPlus 是 Lodash 的优秀替代方案,具有性能更高、支持 TypeScript 以及更好的开发者体验。特性 - 完整的 TypeScript 类型支持 - 完整的 ES6 语法支持 - 完整的 ES7 语法支持 - 完整的 ES8 语法支持 - 完整的 ES9 语法支持 - 完整的 ES2015 语法支持 - 完整的 ES2016 语法支持 - 完整的 ES2017 语法支持 - 完整的 ES2018 语法支持 - 完整的 ES2019 语法支持 - 完整的 ES2020 语法支持 - 完整的 ES2021 语法支持 - 完整的 ES2022 语法支持 - 完整的 ES2023 语法支持 - 完整的 ES2024 语法支持 - 完整的 ES2025 语法支持 - 完整的 ES2

SuperUtilsPlus

A superior alternative to Lodash with improved performance, TypeScript support, and developer experience.

Features

  • Full TypeScript Support: Type definitions are first-class citizens
  • Modern JavaScript: Written for ES2020+ with full ESM and CommonJS support
  • Tree-Shakable: Only import what you need
  • Zero Dependencies: Lightweight and no bloat
  • Extensive Testing: High test coverage for reliable code
  • Extended Functionality: More utility functions than Lodash
  • Performance Focused: Optimized for speed and efficiency
  • Browser & Node.js: Works everywhere JavaScript runs

Installation

bash
npm install super-utils-plus
# or
yarn add super-utils-plus
# or
pnpm add super-utils-plus

Usage Examples

Array Functions

…

Object Functions

javascript
import { get, deepClone } from 'super-utils-plus';

// Get a value from an object with a path
const object = { 'a': [{ 'b': { 'c': 3 } }] };

get(object, 'a[0].b.c');
// => 3

get(object, ['a', '0', 'b', 'c']);
// => 3

get(object, 'a.b.c', 'default');
// => 'default'

// Create a deep clone of an object
const original = { a: 1, b: { c: 2 } };
const clone = deepClone(original);

original.b.c = 99;
// clone.b.c is still 2

String Functions

javascript
import { camelCase } from 'super-utils-plus';

// Convert a string to camel case
camelCase('Foo Bar');
// => 'fooBar'

camelCase('--foo-bar--');
// => 'fooBar'

camelCase('__FOO_BAR__');
// => 'fooBar'

Function Utilities

javascript
import { debounce } from 'super-utils-plus';

// Create a debounced function
const debouncedSave = debounce(saveFunction, 300, { leading: true, trailing: true });

// Call it multiple times, but it will only execute once after 300ms of inactivity
debouncedSave();
debouncedSave();
debouncedSave();

// Cancel the debounced function
debouncedSave.cancel();

// Immediately invoke the debounced function
debouncedSave.flush();

Type Checking

…

Number Utilities

javascript
import { clamp } from 'super-utils-plus';

// Constrain a number to an inclusive range
clamp(-10, -5, 5);  // => -5
clamp(10, -5, 5);   // => 5
clamp(3, -5, 5);    // => 3

Random Utilities

javascript
import { random, randomInt, randomString, randomUUID } from 'super-utils-plus';

// Generate a random number between min and max
random(1, 10);  // => 4.237...

// Generate a random integer between min and max (inclusive)
randomInt(1, 10);  // => 7

// Generate a random string
randomString(10);  // => "a1b2c3d4e5"
randomString(5, 'ABC');  // => "BACAB"

// Generate a random UUID
randomUUID();  // => "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed"

Tree-Shaking with Module Imports

For optimal bundle size, import only what you need:

javascript
// Import only what you need from specific modules
import { chunk, difference } from 'super-utils-plus/array';
import { get } from 'super-utils-plus/object';
import { debounce } from 'super-utils-plus/function';
import { isArray } from 'super-utils-plus/utils';

TypeScript Support

SuperUtilsPlus is written in TypeScript and provides full type definitions:

typescript
import { get } from 'super-utils-plus';

interface User {
  name: string;
  profile: {
    age: number;
    email: string;
  };
}

// Type-safe access with generics
const user = get(data, 'users[0]');

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言