Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@os-design/utils
Advanced tools
Additional utils and hooks used in os-design.
isTouchDevice
– Detects whether the client device is touch-enabled.useBodyScroll
– Enables or disables scrolling of the body element.useBrowserLayoutEffect
– Mocks the useLayoutEffect on the server side.useClickOutside
– Sets the listener that will be called when the click event occurs outside the target element.useClosable
– Sets the closed state to true after a delay to apply the fade out animation.useDebounce
– The callback function will be called only when N ms has elapsed after the last call attempt.useEvent
– Sets the listener that will be called whenever the specified event occurs.useFontSize
– Computes the font size of the element.useForwardedRef
– Allows to use the forwardedRef.useForwardedState
– Uses the inner state if the passed value is undefined.useKeyPress
– Sets the listener that will be called whenever the key down event occurs.usePrevious
– Returns the previous value.usePropRef
– Prevents re-rendering when the value changes.useResizeObserver
– Sets the listener that will be called whenever the resize event of an element occurs.useSafeAreaInset
– Calculates the safe area inset.useThrottle
– The callback function will be called no more than once during the N ms, even if it is called many times during that period.useVh
– Sets the --vh
css variable.useWindowSize
– Returns the width and height of the window.Install the package using the following command:
yarn add @os-design/utils
See all the features in the Storybook.
FAQs
Unknown package
The npm package @os-design/utils receives a total of 410 weekly downloads. As such, @os-design/utils popularity was classified as not popular.
We found that @os-design/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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.