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

## Typescript app version file

  • 0.3.0
  • latest
  • npm
  • Socket score

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

gen-app-version

Typescript app version file

🔢 Standard app-version.ts file generator from git describe.

Install

npm i -g gen-app-version

Usage

cd my-git-local-repo
gen-app-version

Wrote version info v1.13.0-1-g9697d15 to /path/to/my-git-local-repo/app-version.ts

Aliases

gen-app-version
gav
genAppVersion (legacy)

Example output file (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 02 Dec 2021

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