sgstatcache
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Usage

check src or output changed by mtime and fileSize cache.

const {SgStatCache} = require("sgstatcache");

const cache = new SgStatCache("mycachefile");
cache.load(); // if not exist, it returns false;

// check file is change, make new file
if (!cache.isSameAsLast("src.cpp") || !cache.isSameAsLast("src.o")) {
    // to something to make src.cpp to src.o
    cache.update("src.cpp");
    cache.update("src.o");
}

cache.save(); // save file stat to end

Readme

Keywords

none

Package Sidebar

Install

npm i sgstatcache

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

10.9 kB

Total Files

9

Last publish

Collaborators

  • slipper.sg