New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gen-app-version

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gen-app-version

> this script will parse git describe output and generate a standard `app-version.ts` file exporting a constant with all the needed version formats as properties

  • 0.2.0
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

gen-app-version

this script will parse git describe output and generate a standard app-version.ts file exporting a constant with all the needed version formats as properties

Install

npm i -g gen-app-version

Usage

$ cd my-git-local-repo
$ genAppVersionTS
Wrote version info v1.13.0-1-g9697d15 to .\my-git-local-repo\app-version.ts

file example app-version.ts

export const VERSION = {"dirty":false,"raw":"v1.0.0-2-gab291c8","hash":"gab291c8","distance":2,"tag":"v1.0.0","semver":{"raw":"v1.0.0","major":1,"minor":0,"patch":0,"prerelease":[],"build":[],"version":"1.0.0"},"suffix":"2-gab291c8","semverString":"1.0.0+2.gab291c8"};

FAQs

Package last updated on 07 Jan 2019

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