Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parcel-plugin-git-sha

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parcel-plugin-git-sha

Parcel plugin to read information about code version (Git SHA) from env variable.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 24 Apr 2020

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