Installations
npm install @lidakai/rc-resize-observer
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.19.0
NPM Version
6.14.16
Score
64.5
Supply Chain
81.8
Quality
77.5
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
JavaScript (46.76%)
TypeScript (44.59%)
Less (8.65%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
1,093
Last Day
1
Last Week
6
Last Month
35
Last Year
378
GitHub Statistics
MIT License
188 Stars
88 Commits
44 Forks
5 Watchers
12 Branches
33 Contributors
Updated on Jan 26, 2025
Bundle Size
16.59 kB
Minified
5.36 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.2.4
Package Id
@lidakai/rc-resize-observer@1.2.4
Unpacked Size
34.35 kB
Size
7.93 kB
File Count
26
NPM Version
6.14.16
Node Version
14.19.0
Total Downloads
Cumulative downloads
Total Downloads
1,093
Last Day
0%
1
Compared to previous day
Last Week
-45.5%
6
Compared to previous week
Last Month
45.8%
35
Compared to previous month
Last Year
82.6%
378
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
rc-resize-observer
Resize observer for React.
Live Demo
https://react-component.github.io/resize-observer/
Install
Usage
1import ResizeObserver from 'rc-resize-observer'; 2import { render } from 'react-dom'; 3 4render( 5 <ResizeObserver 6 onResize={() => { 7 console.log('resized!'); 8 }} 9 > 10 <textarea /> 11 </ResizeObserver>, 12 mountNode, 13);
API
Property | Type | Default | Description |
---|---|---|---|
disabled | boolean | false | |
onResize | ({ width, height }) => void | - | Trigger when child node resized |
Development
npm install
npm start
License
rc-resize-observer is released under the MIT license.

No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
10 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 9
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 8 commits out of 19 are checked with a SAST tool
Reason
Found 8/22 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:16
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:17
- Warn: no topLevel permission defined: .github/workflows/codeql.yml:1
- Warn: no topLevel permission defined: .github/workflows/react-component-ci.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/resize-observer/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/resize-observer/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/resize-observer/codeql.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/react-component/resize-observer/codeql.yml/master?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Score
5.1
/10
Last Scanned on 2025-02-10
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