
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.