
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.
piral-hooks-utils
Advanced tools
A set of hooks and HOCs for pilets and Piral instances.
This should only be installed as a dependency (dependencies) as it is only designed mostly for runtime/consumption by Piral or pilets. You could also share it explicitly or implicitly from your Piral instance if you'd like to optimize usage in your pilets. It's not required though as the code provided by it is minimal and tree-shakable.
If you'd love to use yarn:
yarn add piral-hooks-utils
Alternatively, npm works reliably, too:
npm i --save piral-hooks-utils
The following hooks are included.
useAfterVisibleA hook to indicate something was suddenly visible.
useAsyncReplaceGives a full async lifecycle in a hook.
useLockBodyScrollHook that locks scrolling on the main document.
useOnClickOutsideHook that detects if a click outside the given reference has been performed.
useOnScreenVisibleHook that detects if a reference element within the main document is visible.
usePiletApiRetrieves the Pilet API stored in the provider.
usePromptHook to notify the user in case of potential data loss when performing a page transition (internal or external).
Piral is released using the MIT license. For more information see the license file.
FAQs
Hooks and HOC for pilets and Piral instances.
The npm package piral-hooks-utils receives a total of 998 weekly downloads. As such, piral-hooks-utils popularity was classified as not popular.
We found that piral-hooks-utils demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.