
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-img-cropper
Advanced tools
基于 react-image-crop 封装了一层,支持 antd 的 Upload 组件和简单 file 类型的 input
package 中包含 es 和 umd(CommonJS & umd 混合) 两种 module,开发者可按需引用
import ReactImgCropper from 'react-img-cropper';
...
<ReactImgCropper
uploadedImgBase64={uploadedImgBase64}
uploadedImgFile={uploadedImgFile}
setCroppedImgBlob={setCroppedImgBlob}
setCroppedImgObjectURL={setCroppedImgObjectURL}
showPreviewText
/>
...
# 安装依赖
$ yarn install
# 调试
$ npm run examples:debug
# 构建
$ npm run build
# 发布
$ npm run publish
antd 的 Upload 组件input# 安装依赖
$ yarn install
# 构建 examples 代码
# 启动 node server,处理图片上传,上传图片目录: examples/static/uploadedImg
$ npm run examples
FAQs
A image cropper integarated by react-image-crop for React
We found that react-img-cropper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.