
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@onbeam/utils
Advanced tools
A collection of useful utility functions and hooks which can be used fully standalone or along with the rest of the @onbeam packages. View all utils, hooks and variables [here](https://packages.onbeam.com/?path=/docs/utils-functions-absbigint--docs).
A collection of useful utility functions and hooks which can be used fully standalone or along with the rest of the @onbeam packages. View all utils, hooks and variables here.
Install the package using your preferred package manager:
npm install @onbeam/utils
# or
yarn add @onbeam/utils
# or
pnpm add @onbeam/utils
To keep all @onbeam packages updated, you can use the CLI:
npx @onbeam/cli update -d [directory]
This package is fully tree-shakable, ensuring that only the utils, hooks and variables you import are included in your final bundle, optimizing your app's performance.
import { formatNumber } from "@onbeam/utils";
formatNumber(1234567); // "1.23M"
formatNumber(1234567, { maximumFractionDigits: 1 }); // "1.2M"
import { useClipboard } from "@onbeam/utils";
const App = () => {
const { onCopy, hasCopied } = useClipboard("Hello, World!");
return <button onClick={onCopy}>{hasCopied ? "Copied!" : "Copy"}</button>;
};
For more examples, check out the docs of all individual utils, hooks and variables here.
@onbeam packagesThat's it! Happy coding! 🌈
FAQs
A collection of useful utility functions and hooks which can be used fully standalone or along with the rest of the @onbeam packages. View all utils, hooks and variables [here](https://packages.onbeam.com/?path=/docs/utils-functions-absbigint--docs).
We found that @onbeam/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.