0.1.1 • Published 9 years ago

touchp v0.1.1

Weekly downloads
327
License
MIT
Repository
github
Last release
9 years ago

touchp

Like mkdir -p, but with touch

Install

npm install touchp

Usage

var touchp = require('touchp');

touchp('some/path/that/may/not/exist.txt', function(err, alreadyExisted) {
  console.log("File " + (alreadyExisted ? 'already exists' : 'was created'));
});

var existedBefore = touchp.sync('some/other/path/that/may/not/exist.txt')