assert-file
assert file utilities
Installation
npm i --save assert-file
Usage
const assertFile = ; // `ok()` is alias of `assertFile()`, `fail()` is the opposite of `assertFile()`const ok fail = assertFile; // check whether file exists; // check string includes; // check with regex; // check json includes; // support multiple rule; // opposite assertionassertFile;assertFile;assertFile;assertFile;