
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@newstudios/hook
Advanced tools
npm install @newstudios/hook
or
yarn add @newstudios/hook
useArrowKey
listen to arrow key state change and get the latest stateuseInvalidator
use invalidator to invalidate the target at the next animation frameuseCanvasInvalidator
a special invalidator to draw canvas at the next aniation frameuseClickAway
listen click event outside the targetuseDevicePixelRatio
listen to the device pixel ratio change and get the latest devicePixelRatiouseDrag
a simple hook to process the dragging state and callbackuseEvent
a hook to bind listener(s) to event targetuseHover
a hook to get the mouse hover state of the targetuseList
a hook to manage collectionsuseUpdate
get a static callback to force update the componentuseNextUpdate
get a static callback to update the componenent next event loopuseRaf
a hook to call requestAnimationFrame whose lifecycle is self manageduseRefObject
a hook to reference any object from the argumentuseResize
a hook to listen to the resize event of the targetuseResizeObserver
a hook to get the default or customed provided ResizeObserver instanceuseSafeClick
manage the click event from the target and assure the gesture not to be dragginguseSetupCanvas
a hook for setup the canvas and set the canvas width and height automaticallyuseShortcutKey
listen to the shortcut keyuseShortcutKeys
listen to the multiple shortcut keysuseThrottle
invoke a callback with throttleuseThrottleCallback
get a callback which will be invoked with throttleMIT
FAQs
common hooks for react
The npm package @newstudios/hook receives a total of 26 weekly downloads. As such, @newstudios/hook popularity was classified as not popular.
We found that @newstudios/hook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.