Skip to content

Instantly share code, notes, and snippets.

View teslaji's full-sized avatar
🎯
Focusing

Kuldeep Bhatt teslaji

🎯
Focusing
View GitHub Profile
var fs = require('fs');
var path = require('path');
var mkpath = require('mkpath');
// You probably want to pass in a callback to this function to send back errors, normally
var mkfile = function (filepath) {
mkpath(path.dirname(filepath), function (err) {
if (err) {
console.log(err);
} else {