process-fingerprint

0.1.1 • Public • Published

process-fingerprint

Create a fingerprint value that is exposed to your user environment

Build Status

Installation

$ npm install --save process-fingerprint

Usage

var fingerprint = require('process-fingerprint');
 
fingerprint();
// => "_pf1440759573263"

Discussion

I ran into an issue recently while building a Metalsmith + Gulp Boilerplate where existing fingerprint modules weren't sharing the fingerprint values nicely across the gulp and metalsmith build processes. This lead me to the conclusion that the fingerprint value should be hoisted up to some globally-available namespace, where the metalsmith and gulp build process could share the same fingerprint value.

❗️ Disclaimer

I am sure there is a better way to create a fingerprint variable, perhaps I shouldn't be using the process.env object for my own silly experiments, but for now, this approach will solve the problem of making a global fingerprint across multiple build processes. I will use this module with caution until my experiments lead me to believe that this is a worthwhile fingerprinting method.

Please open an issue to start a discussion, share your thoughts or offer suggestions

License

MIT @ Michael Wuergler

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i process-fingerprint

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • radiovisual