mkdir with 'p' on the base mkdir '{recursive: true}' doesn't seem to work so here's this little util
npm install --save git+https://github.com/anzerr/fs.mkdirp.git
npm install --save @anzerr/fs.mkdirp
const mkdir = require('fs.mkdirp');
mkdir('foo/bar/cat/dog').catch(console.log);