micromark-util-types

中文文档
2.0.3发布于 2026/09/26MITTypeScriptES Module零依赖近 30 天下载 2.9亿

micromark utility with a couple of typescript types

原始使用文档
文档目录11 节
  1. Contents
  2. What is this?
  3. When should I use this?
  4. Install
  5. Use
  6. API
  7. Types
  8. Compatibility
  9. Security
  10. Contribute
  11. License

micromark-util-types

Build Coverage Downloads Size Sponsors Backers Chat

micromark utility package with TypeScript types.

Contents

What is this?

This package exposes TypeScript types shared throughout the micromark ecosystem.

When should I use this?

This package is useful when you are making your own, typed, micromark extensions.

Install

In Node.js (version 16+), install with npm:

npm install micromark-util-types

In Deno with esm.sh:

import type {Point, /* … */} from 'https://esm.sh/micromark-util-types@1'

Use

/**
 * @import {Point} from 'micromark-util-types'
 */

API

This module exports no identifiers. There is no default export.

See the code for all about the exposed types.

Types

This package is just TypeScript types. It exports lots of different types.

Compatibility

Projects maintained by the unified collective are compatible with maintained versions of Node.js.

When we cut a new major release, we drop support for unmaintained versions of Node. This means we try to keep the current release line, micromark-util-types@2, compatible with Node.js 16. This package works with micromark@3.

Security

This package is safe. See security.md in micromark/.github for how to submit a security report.

Contribute

See contributing.md in micromark/.github for ways to get started. See support.md for ways to get help.

This project has a code of conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer

版本与发布记录

micromark-util-types 共发布 12 个版本,首次发布于 2021/06/07;过去 12 个月发布了 1 个版本。

版本发布日期距今
2.0.3latest2026/09/261 个月前
2.0.22025/02/271.7 年前
2.0.12024/11/122 年前
2.0.02023/06/223 年前
1.1.02023/05/303 年前
1.0.22021/11/204 年前

其他发布通道:next → 1.0.0-beta.1。

关于 micromark-util-types 的常见问题

micromark-util-types 是什么?

micromark utility with a couple of typescript types

如何安装 micromark-util-types?

在项目目录运行 npm install micromark-util-types,或使用 pnpm add / yarn add / bun add。

micromark-util-types 支持 TypeScript 吗?

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

micromark-util-types 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

micromark-util-types 可以商用吗?

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

micromark-util-types 的下载量有多少?

根据 npm 官方下载统计,micromark-util-types 在 2026/10/05 – 2026/11/03 这 30 天内被下载 291,840,011 次,日均约 9,728,000 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

micromark-util-types 还在维护吗?

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