# @tarojs/taro-h5

> Taro h5 framework

Latest version **4.2.1** (published 2026-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tarojs/taro-h5
pnpm add @tarojs/taro-h5
yarn add @tarojs/taro-h5
bun add @tarojs/taro-h5
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.2.1 |
| Published | 2026-07-17 |
| First published | 2018-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 15 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 37680 |
| Author | O2Team |
| Maintainers | yuche, xuanzebin, defaultlee, drchan, kyjo, qq592743779, advancedcat, baosiqing, zakary, liuzejia, vasily.cjj, hardenzheng2 |
| Keywords | taro |

## Links

- npm: https://www.npmjs.com/package/@tarojs/taro-h5
- Repository: https://github.com/NervJS/taro
- Homepage: https://github.com/NervJS/taro#readme
- Issues: https://github.com/NervJS/taro/issues
- npm.io page: https://npm.io/package/@tarojs/taro-h5

## Dependencies (15)

- [ics](https://npm.io/package/ics.md) ^3.7.2
- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [platform](https://npm.io/package/platform.md) ^1.3.6
- [base64-js](https://npm.io/package/base64-js.md) ^1.5.1
- [is-mobile](https://npm.io/package/is-mobile.md) ^4.0.0
- [lodash-es](https://npm.io/package/lodash-es.md) 4.17.21
- [@tarojs/api](https://npm.io/package/@tarojs/api.md) 4.2.1
- [jsonp-retry](https://npm.io/package/jsonp-retry.md) ^1.0.3
- [query-string](https://npm.io/package/query-string.md) ^9.0.0
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^3.6.20
- [@tarojs/router](https://npm.io/package/@tarojs/router.md) 4.2.1
- [@tarojs/shared](https://npm.io/package/@tarojs/shared.md) 4.2.1
- [@tarojs/runtime](https://npm.io/package/@tarojs/runtime.md) 4.2.1
- [@tarojs/components](https://npm.io/package/@tarojs/components.md) 4.2.1
- [abortcontroller-polyfill](https://npm.io/package/abortcontroller-polyfill.md) ^1.7.5

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 4.2.1 (latest) — 2026-07-17
- 4.2.2-beta.5 (beta) — 2026-09-14
- 4.2.2-alpha.2 (alpha) — 2026-09-01
- 3.6.40 (v3-latest) — 2026-04-13
- 3.6.40-beta.1 (v3-beta) — 2026-03-25
- 4.0.9-alpha.8 (test) — 2025-05-14
- 4.0.7-canary.6 (canary) — 2024-11-12
- 4.0.2 (next) — 2024-07-16
- 3.6.15-theta.0 (theta) — 2024-05-06
- 3.6.24-nightly.10 (nightly) — 2024-02-28
- 2.2.22 (2.x) — 2024-01-09
- 3.0.29 (3.0) — 2021-03-09
- 1.3.46 (1.x) — 2020-10-21
- 0.0.0-experimental.2 (experimental) — 2020-04-27
- 4.2.2-beta.4 — 2026-09-08
- … 1155 more at https://npm.io/package/@tarojs/taro-h5/versions

## README

# @tarojs/taro-h5

暴露给 `@tarojs/taro` 的 H5 端 API。

需要配合 `babel-plugin-transform-taroapi` 才能使用 ES6 default import 的语法，相关配置详情在 `babel-preset-taro` 中。

---
_Source: https://npm.io/package/@tarojs/taro-h5 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
