parcel-plugin-build-time

1.0.2 • Public • Published

parcel-plugin-build-time

Parcel plugin to read information about build time from env variable.

Install

# npm
npm i -D parcel-plugin-build-time

# or yarn
yarn add -D parcel-plugin-build-time

How to use

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

javascript

console.log("build date: " + process.env.BUILD_TIME);

output

build date: Mon Apr 20 2020 15:58:34 GMT+0200 (Central European Summer Time)

/parcel-plugin-build-time/

    Package Sidebar

    Install

    npm i parcel-plugin-build-time

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    1.08 kB

    Total Files

    3

    Last publish

    Collaborators

    • osky772