cachebuster

1.0.4 • Public • Published

cachebuster

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"
}

Package Sidebar

Install

npm i cachebuster

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • 0x0049