file-exists-sync
Check if a file exists. ES6 module compatible, non-depracated fs utils.
Last updated 4 years ago by shmck .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install file-exists-sync 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

1 Versions

  • 1.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |