DefinitelyTyped/types/mkpath/mkpath-tests.ts
2017-03-24 14:27:52 -07:00

10 lines
209 B
TypeScript

import mkpath = require('mkpath');
mkpath('red/green/violet', function (err) {
if (err) throw err;
console.log('Directory structure red/green/violet created');
});
mkpath.sync('/tmp/blue/orange', 700);