
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
use-correction
Advanced tools
High-level abstraction over use-cropper. With preview, animations and actually correcting images
High-level abstraction over use-cropper. With preview, animations and actually correcting images
Requires ChakraUI
yarn add @chakra-ui/react @emotion/react @emotion/styled framer-motion
npm add @chakra-ui/react @emotion/react @emotion/styled framer-motion
import { useCorrection } from 'use-correction'
import Correction from 'use-correction/chakra'
import { prepareWorker } from "opencv-tools/workers/correct"
// see opencv-tools for details
const worker = new Worker(new URL('correct-worker.ts', import.meta.url), { type: 'module' })
const workerApi = prepareWorker(worker)
const { correctionProps, actions, view } = useCorrection('/path/to/my-image.jpg', workerApi)
async function correct() {
const result = await actions.correct()
// ...
}
return (
<div>
{/* ... */}
<Correction {...correctionProps} />
<button onClick={actions.preview}>Preview</button>
<button onClick={actions.reset}>Reset corners</button>
<button onClick={correct}>Correct image</button>
</div>
)
import { useCorrection } from 'use-correction'
import { prepareWorker } from "opencv-tools/workers/correct"
// see opencv-tools for details
const worker = new Worker(new URL('correct-worker.ts', import.meta.url), { type: 'module' })
const workerApi = prepareWorker(worker)
const { Correction, correctionProps, actions, view } = useCorrection('/path/to/my-image.jpg', workerApi)
return (
<Correction {...correctionProps} />
)
FAQs
High-level abstraction over use-cropper. With preview, animations and actually correcting images
The npm package use-correction receives a total of 0 weekly downloads. As such, use-correction popularity was classified as not popular.
We found that use-correction demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.