
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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 2 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.