cachebuster

Archived Node.js
On branch current
Latest: ???/cur
Running: 3f21578 (v1.0.4)
??? commits behind

Command line tool to generate a file containing file hashes.

Installation

npm install cachebuster

Usage

cachebuster php file.ext file2.ext file3.ext > cachebuster.php
cachebuster json file.ext file2.ext file3.ext > cachebuster.json

Supported types:

php json

Example output:

<?php // Generated file; do not edit.
return array(
    'file.ext' => 'a6fdaad815a0d9433c1e194b2bbf0249',
    'file2.ext' => '94d2cba10cbc4575ffb05f77f22202ae',
    'file3.ext' => '1d00112c392a6bab528c7e6d38b89487'
);
{
    "//": "Generated file; do not edit.",
    "file.ext": "a6fdaad815a0d9433c1e194b2bbf0249",
    "file2.ext": "94d2cba10cbc4575ffb05f77f22202ae",
    "file3.ext": "1d00112c392a6bab528c7e6d38b89487"
}