when-file-exists

0.1.0 • Public • Published

when-file-exists

Call a callback once a file is created.

var whenFileExists = require('when-file-exists')
var path = require('path')
 
var pathToFile = path.resolve(__dirname, 'some-file.txt')
 
whenFileExists(pathToFile, function (err) {
  if (err) { throw err }
 
  // some-file.txt exists
})

Readme

Keywords

Package Sidebar

Install

npm i when-file-exists

Weekly Downloads

0

Version

0.1.0

License

Unlicense

Last publish

Collaborators

  • evanhahn