mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
360 B
TypeScript
14 lines
360 B
TypeScript
import makeDir = require('make-dir');
|
|
import * as fs from 'fs';
|
|
import * as gfs from 'graceful-fs';
|
|
|
|
makeDir('path/to/somewhere').then(dirname => {
|
|
// do something
|
|
});
|
|
|
|
const dirname = makeDir.sync('path/to/somewhere');
|
|
|
|
makeDir('path/to/somewhere', {mode: parseInt('777', 8)});
|
|
makeDir('path/to/somewhere', {fs});
|
|
makeDir('path/to/somewhere', {fs: gfs});
|