@art-suite/art-core-ts

中文文档
1.10.1发布于 2026/06/19MITTypeScriptESM + CJS近 30 天下载 3308

The full Art-Core-TS library

原始使用文档
文档目录4 节
  1. Component Libraries
  2. Installation
  3. Usage
  4. License

@art-suite/art-core-ts

The standard library JavaScript should have had. This package provides a comprehensive set of utilities that make JavaScript/TypeScript development more productive and enjoyable.

With tree-shaking support, only the portions of art-core that you actually use will be included in your bundle, keeping your application lean and efficient.

Component Libraries

This package combines several specialized libraries, each focusing on a specific aspect of development:

  • @art-suite/art-core-ts-types - JavaScript's type system is famously inconsistent at runtime. This library unifies and standardizes type checks by providing a set of highly-performant, well-tested isFoo functions, abstracting away JavaScript's quirks.

  • @art-suite/art-core-ts-containers - Essential, high-performance utilities for working with arrays and plain objects. Provides robust, pure-functional implementations of common operations like merge, array flattening, and efficient object key operations that are missing or inefficient in native JavaScript.

  • @art-suite/art-core-ts-json - Seamless, type-safe utilities for working with JSON in TypeScript. Provides robust TypeScript types for JSON values, type guards, and conversion utilities that make it easy to work with JSON data in a type-safe way.

  • @art-suite/art-core-ts-string-case - Effortless, lossless conversion between all common string case formats in programming. Handles edge cases (especially acronyms) correctly and enables round-trip conversion between all supported formats without losing word boundaries or acronym information.

  • @art-suite/art-core-ts-time - Seamless, simple utilities for working with dates, times, and durations. Provides a unified set of utilities for effortless conversion between standard date/time representations, easy formatting, and common calculations like "start of day" or "first of month".

  • @art-suite/art-core-ts-communication-status - A simple, consistent library for handling communication status in client-server applications. It reduces the complex space of HTTP status codes and other communication states into a small set of actionable categories that make client-side code simpler and more robust.

  • @art-suite/art-core-ts-comprehensions - A powerful and flexible comprehension library that provides a unified interface for working with arrays, objects, and other iterables. Each comprehension function can accept any input container as the source and returns the appropriate type (object, array, or found value).

Installation

npm install @art-suite/art-core-ts

Usage

import /* your needed utilities */ "@art-suite/art-core-ts";

License

MIT

版本与发布记录

@art-suite/art-core-ts 共发布 82 个版本,首次发布于 2025/05/12;过去 12 个月发布了 21 个版本。

版本发布日期距今
1.10.1latest2026/06/194 个月前
1.10.02026/05/205 个月前
1.9.02026/03/297 个月前
1.8.12026/03/277 个月前
1.8.02026/03/277 个月前
1.7.02026/03/277 个月前

关于 @art-suite/art-core-ts 的常见问题

@art-suite/art-core-ts 是什么?

The full Art-Core-TS library

如何安装 @art-suite/art-core-ts?

在项目目录运行 npm install @art-suite/art-core-ts,或使用 pnpm add / yarn add / bun add。

@art-suite/art-core-ts 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@art-suite/art-core-ts 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@art-suite/art-core-ts 可以商用吗?

@art-suite/art-core-ts 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@art-suite/art-core-ts 的下载量有多少?

根据 npm 官方下载统计,@art-suite/art-core-ts 在 2026/10/07 – 2026/11/05 这 30 天内被下载 3,308 次,日均约 110 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@art-suite/art-core-ts 还在维护吗?

最新版本 1.10.1 发布于 2026/06/19(4 个月前);至今共发布 82 个版本,其中过去 12 个月发布了 21 个;首次发布于 2025/05/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。