Installations
npm install @ahooksjs/use-request
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
16.9.1
NPM Version
lerna/4.0.0/node@v16.9.1+x64 (darwin)
Statistics
14,097 Stars
2,698 Commits
2,721 Forks
96 Watching
12 Branches
238 Contributors
Updated on 28 Nov 2024
Languages
TypeScript (98.16%)
JavaScript (1.36%)
HTML (0.37%)
CSS (0.08%)
Shell (0.02%)
Less (0.01%)
Total Downloads
Cumulative downloads
Total Downloads
7,739,312
Last day
-16.9%
5,359
Compared to previous day
Last week
-8.7%
32,009
Compared to previous week
Last month
19.1%
138,580
Compared to previous month
Last year
-21.2%
1,704,139
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
📚 Documentation
✨ Features
- Easy to learn and use
- Supports SSR
- Special treatment for functions, avoid closure problems
- Contains a large number of advanced Hooks that are refined from business scenarios
- Contains a comprehensive collection of basic Hooks
- Written in TypeScript with predictable static types
📦 Install
1$ npm install --save ahooks 2# or 3$ yarn add ahooks 4# or 5$ pnpm add ahooks 6# or 7$ bun add ahooks
🔨 Usage
1import { useRequest } from 'ahooks';
💻 Online Demo
🤝 Contributing
1$ git clone git@github.com:alibaba/hooks.git 2$ cd hooks 3$ pnpm run init 4$ pnpm start
Open your browser and visit http://127.0.0.1:8000
We welcome all contributions, please read our CONTRIBUTING.MD first, let's build a better hooks library together.
Thanks to all the contributors:
👥 Discuss
No vulnerabilities found.
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no dangerous workflow patterns detected
Reason
8 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 25/30 approved changesets -- score normalized to 8
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/comment-when-needs-more-info.yml:1
- Warn: no topLevel permission defined: .github/workflows/gitleaks.yml:1
- Warn: no topLevel permission defined: .github/workflows/issue-close-require.yml:1
- Warn: no topLevel permission defined: .github/workflows/issue-reply.yml:1
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/comment-when-needs-more-info.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/comment-when-needs-more-info.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gitleaks.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/gitleaks.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/gitleaks.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/gitleaks.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/gitleaks.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/gitleaks.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-close-require.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/issue-close-require.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-close-require.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/issue-close-require.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-reply.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/issue-reply.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-reply.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/issue-reply.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/test.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/alibaba/hooks/test.yml/master?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 8 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 25 are checked with a SAST tool
Reason
30 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99
- Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x
- Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q
- Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-3wc5-fcw2-2329
- Warn: Project is vulnerable to: GHSA-64fm-8hw2-v72w
- Warn: Project is vulnerable to: GHSA-f98w-7cxr-ff2h
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-mh8j-9jvh-gjf6
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-325j-24f4-qv5x
- Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq
- Warn: Project is vulnerable to: GHSA-p3hc-fv2j-rp68
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
Score
5.3
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More