UNPKG

locklift

Version:

Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.

9 lines (7 loc) 223 B
import fs from "fs-extra"; export const tryToGetFileChangeTime = (filePath: string): Promise<number | undefined> => { return fs .stat(filePath) .then(file => file.mtime.getTime()) .catch(() => undefined); };