Package Exports
- create-if-not-exist
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-if-not-exist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
createIfNotExist
Synchronous Node.JS function to simply create a file if it does not exist.
npm install create-if-not-exist --savevar createIfNotExist = require("create-if-not-exist");
createIfNotExist('file.txt','blablablabla');##API
createIfNotExist(filename, data)
- filename - The name of the file
- data - The data to be written to the file