ahooks 3.1.3
react hooks library
ahooks@3.1.3 was published on 2021-12-29. Its manifest declares 7 runtime dependencies and 1 peer requirement. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=8.0.0.
All ahooks versions · Permanent reference to 3.1.3 · Latest release
Package specifications
| Version | 3.1.3 |
|---|---|
| License declaration | MIT |
| Published | 2021-12-29T12:22:19.896Z |
| Node.js requirement | >=8.0.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 7 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 612.05 KiB |
| Published file count | 456 |
| Package type | Not declared |
| ES module entry | ./es/index.js |
| Default entry | ./lib/index.js |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 7 |
| Repository stars | 14978 |
| Repository forks | 2766 |
Install ahooks 3.1.3
npm install ahooks@3.1.3 pnpm add ahooks@3.1.3 yarn add ahooks@3.1.3
Runtime dependencies
- dayjs ^1.9.1
- lodash ^4.17.21
- js-cookie ^3.0.0
- screenfull ^5.0.0
- ahooks-v3-count ^1.0.0
- intersection-observer ^0.12.0
- resize-observer-polyfill ^1.5.1
Peer requirements
- react ^16.8.6 || ^17.0
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- ahooks-v3-count@1.0.0 — direct
- dayjs@1.11.23 — direct
- intersection-observer@0.12.2 — direct
- js-cookie@3.0.8 — direct
- lodash@4.18.1 — direct
- resize-observer-polyfill@1.5.1 — direct
- screenfull@5.2.0 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 5/10 — 7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5 |
|---|---|
| Security-Policy | 10/10 — security policy file detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Code-Review | 8/10 — Found 20/24 approved changesets -- score normalized to 8 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 6/10 — SAST tool is not run on all commits -- score normalized to 6 |
Evidence and freshness
- https://registry.npmjs.org/ahooks/3.1.3 — retrieved 2026-10-31T10:39:48.279Z
- https://api.deps.dev/v3/projects/github.com%2Falibaba%2Fhooks — retrieved 2026-10-31T09:58:48.190Z
- https://api.deps.dev/v3/systems/npm/packages/ahooks/versions/3.1.3:dependencies — retrieved 2026-10-31T10:39:48.850Z
- https://api.deps.dev/v3/systems/npm/packages/ahooks/versions/3.1.3 — retrieved 2026-10-31T10:39:48.912Z