
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@distributedlab/tools
Advanced tools
These packages aim to provide developers with a set of commonly used functions and features for building web applications, such as handling big numbers, date manipulation, subscribing to and receiving notifications when certain events occur with EventEmitter, and more.
yarn add @distributedlab/tools
BN uses 26 (yoctoNEAR + 2 (percent precision)) maximum precision by default.
You can change it by BN.setConfig method.
import { BN } from '@distributedlab/tools';
const amountA = BN.fromRaw(2, 18)
const amountB = BN.fromRaw(3, 18)
console.log(amountA.add(amountB).format({
decimals: 18,
decimalSeparator: '.',
groupSeparator: ',',
groupSize: 3,
}))
import { time } from '@distributedlab/tools';
const currentDate = time()
console.log(currentDate.format('YYYY-MM-DD'))
yarn test
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Collection of common utility functions and classes
We found that @distributedlab/tools demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.