Socket
Socket
Sign inDemoInstall

@invisible/current-package-version

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisible/current-package-version

Outputs the version of the package you are in, based on package.json


Version published
Maintainers
8
Created
Source

Current Package Version

Gives the version of the package that you are in

$ current-package-version
1.0.0

Useful for stuff like auto-tagging git commits.

git tag v`current-package-version` -am "cool release note, bro"

Can also be used programmatically.

const { currentPackageVersion } = require('@invisible/current-package-version')

console.log(currentPackageVersion())

FAQs

Package last updated on 26 Dec 2018

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