createIfNotExist
Synchronous Node.JS function to simply create a file if it does not exist. If the file does exist, it will not be modified.
npm install create-
var createIfNotExist = ; // File will be created if it does not exist.// If the file does exist, it will not be modified.;
API
createIfNotExist(filename, data)
- filename - The name of the file
- data - The data to be written to the file