
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
@biomejs/version-utils
Advanced tools
This library provides helper functions to detect the version of Biome from the dependencies of a given project.
This library provides helper functions to detect the version of Biome from the dependencies of a given project.
[!WARNING] This is an internal library, and semver is not guaranteed to be followed, so depend on it at your own risk.
npm install @biomejs/version-utils
To detect the version of Biome from the dependencies of a given project, use
the detectFromDependencies helper function. This function will look for the
version of Biome in the dependencies of the lockfile for the project, and fall
back to the package.json file if no lockfile is found, or if it cannot be read.
import { detectFromDependencies } from '@biomejs/version-utils';
const version = detectFromDependencies('/path/to/project');
[!TIP] The lockfiles of the following package managers are supported:
- npm (
package-lock.json)- pnpm (
pnpm-lock.yaml)- yarn (
yarn.lock)Bun's lockfile is binary and cannot be easily read, so we fall back to the
package.jsonfile for Bun projects.
Copyright © 2024, Nicolas Hedger. Released under the MIT License.
FAQs
This library provides helper functions to detect the version of Biome from the dependencies of a given project.
We found that @biomejs/version-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.