Gathering detailed insights and metrics for bump-manifest
Gathering detailed insights and metrics for bump-manifest
Gathering detailed insights and metrics for bump-manifest
Gathering detailed insights and metrics for bump-manifest
npm install bump-manifest
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Commits
3 Watching
2 Branches
1 Contributors
Updated on 08 Sept 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
50%
3
Compared to previous month
Last year
-41.4%
58
Compared to previous year
1
Bump an appcache manifest's timestamp.
When using appcache manifests you have to modify it when your resources changed, otherwise supporting browsers will keep your cached contents forever!
This module inserts the current timestamp after the obligatory header in order to cause a resource reload.
1var bump = require('bump-manifest'); 2var fs = require('fs'); 3 4var manifest = fs.readFileSync(__dirname + '/man.appcache'); 5fs.writeFileSync(__dirname + '/man.appcache', bump(manifest));
If your old manifest was like this:
CACHE MANIFEST
bundle.js
it now looks like that:
CACHE MANIFEST
# 1381439992058
bundle.js
And if it already had the timestamp, it has a new one now.
With npm do:
1npm install bump-manifest
(MIT)
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-18
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