jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

Two extra methods, exists and existsSync? #58

Closed Tarabass closed 8 years ago

Tarabass commented 8 years ago

Maybe it's an idea to create two extra methods, exists and existsSync, and under the hood use fs.stat and fs.statSync?

jprichardson commented 8 years ago

This would be more appropriate in fs-extra.