New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

print-project-version

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

print-project-version

Print formatted project version from the package.json

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

print-project-version

Print formatted project version from the package.json

This is a small utility meant to be used on CI scripts. It will print the version coming from the project package.json.

Compared to other similar utilities, you can format the way you print the version, or only print a part of it. This is expecially useful when you automatically generate patch versions on your CI and you don't want to use console utilities.

Examples.

npx print-project-version # prints 1.2.3
npx print-project-version minor # prints 2
npx print-project-version minor.patch # prints 2.3
npx print-project-version major.minor. # prints 1.2.

FAQs

Package last updated on 28 Jun 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