file-exists-sync
v1.0.1
Published
Check if a file exists. ES6 module compatible, non-depracated fs utils.
Downloads
10
Readme
File Exists Sync
Check if a file exists in Node.js.
Why a new file-exists check?
- uses a non-deprecated version of
fs
- no need for promises
- ES6 default import
Setup
> npm install file-exists-sync
import exists from 'file-exists-sync';
exists('/path/to/file.js'); // true or false