Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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
})

About

call a callback once a file is created

Resources

License

Packages

No packages published
You can’t perform that action at this time.