1.0.1 • Published 4 years ago

parcel-plugin-git-sha v1.0.1

Weekly downloads
348
License
ISC
Repository
github
Last release
4 years ago

parcel-plugin-git-sha

Parcel plugin to read information about Git SHA from env variable.

Install

# npm
npm i -D parcel-plugin-git-sha

# or yarn
yarn add -D parcel-plugin-git-sha

How to use

This plugin puts the build date in an environment variable named GIT_SHA.
you can retrive it in js like this: process.env.GIT_SHA

javascript

console.log("Code version: " + process.env.GIT_SHA);

output

Code version: 164b559e3b93eb4c42ff21b1e9cd9774d031bb38
1.0.1

4 years ago

1.0.0-alpha-2

4 years ago

1.0.0-alpha-1

4 years ago

1.0.0-alpha

4 years ago

1.0.0

4 years ago