mkdir -p sync in node.js
npm install mkdirp-sync --save
yarn add mkdirp-sync
const mkdir = require('mkdirp-sync');
mkdir('foo/bar/baz');
folders are created as follows, same as running fs.mkdirSync
recursively.
|____foo
| |____bar
| | |____baz
MIT