@justinc/dir-exists

2.1.0 • Public • Published

NPM

var dirExists = require('@justinc/dir-exists').dirExists;
var dirExistsSync = require('@justinc/dir-exists').dirExistsSync;
var dirExistsAsPromised = require('@justinc/dir-exists').dirExistsAsPromised;

console.log('sync:', dirExistsSync('/some/path/to/dir'));
console.log(dirExists('/some/path/to/dir', (err, exists) => {
  if (err) throw err;
  console.log('async:', exists);
}));
dirExistsAsPromised('/some/path/to/dir').then(exists => console.log('promise:', exists));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    2,323
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    2,323
  • 2.0.2
    0
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @justinc/dir-exists

Weekly Downloads

2,323

Version

2.1.0

License

ISC

Last publish

Collaborators

  • justinc