Gathering detailed insights and metrics for fingerprinting
Gathering detailed insights and metrics for fingerprinting
Gathering detailed insights and metrics for fingerprinting
Gathering detailed insights and metrics for fingerprinting
npm install fingerprinting
74.1
Supply Chain
93.2
Quality
75.1
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
11 Stars
4 Commits
1 Forks
3 Watching
2 Branches
1 Contributors
Updated on 29 Apr 2021
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
4.7%
560
Compared to previous day
Last week
12.9%
2,804
Compared to previous week
Last month
64%
11,094
Compared to previous month
Last year
46.1%
116,310
Compared to previous year
4
Fingerprinting is a cache-busting technique which allows you to expire files when they actually change this is done by altering the filenames of the files. This way you can set far future expire headers without having to worry that your users might see stale or old files. Providing you with best of 2 worlds, cached assets for increased performance with sacrificing your ability to instantly modify files.
The module is released in the public npm registry and can be installed by running:
npm install --save fingerprinting
The fingerprinting
module is exposed as a single function that generates the
new filenames for your files. In all examples we assume that you've already
required the module as followed;
1'use strict'; 2 3var finger = require('fingerprinting');
The exported finger
function accepts the following arguments:
contents
option is provided (please do note that reading is
done using a sync fs method).{hash}.{suffix}.{ext}
.md5
.false
.production
generates a min
suffix while a mising or development generates a dev
suffix. Defaults to
NODE_ENV
.fs.readFileSync
within the code. It can be either a string or Buffer.The function returns an object with 2 keys:
true
this will contain the filename
for your source map file.1var fs = require('fs'); 2 3fs.readFile(__dirname + '/index.js', function (err, buffer) { 4 if (err) throw err; 5 6 var print = finger('index.js', { 7 content: buffer 8 }); 9 10 console.log('print:', print.file); // 167f581dd914ba9d3d2e6c8820a5caa6.dev.js 11});
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More