Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/prerelease-id-from-version

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/prerelease-id-from-version

Get the prerelease ID from a version string

  • 6.3.1-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created

What is @lerna/prerelease-id-from-version?

@lerna/prerelease-id-from-version is a utility package that helps in extracting the prerelease identifier from a given version string. This can be particularly useful in managing and automating versioning in monorepos or multi-package repositories.

What are @lerna/prerelease-id-from-version's main functionalities?

Extract Prerelease Identifier

This feature allows you to extract the prerelease identifier (e.g., 'alpha', 'beta') from a given version string. This can be useful for conditional logic based on the type of prerelease.

const prereleaseIdFromVersion = require('@lerna/prerelease-id-from-version');
const version = '1.0.0-alpha.1';
const prereleaseId = prereleaseIdFromVersion(version);
console.log(prereleaseId); // Output: 'alpha'

Other packages similar to @lerna/prerelease-id-from-version

Keywords

FAQs

Package last updated on 27 Dec 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc