@anzerr/fs.mkdirp

mkdir with 'p'

Usage no npm install needed!

<script type="module">
  import anzerrFsMkdirp from 'https://cdn.skypack.dev/@anzerr/fs.mkdirp';
</script>

README

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

mkdir with 'p' on the base mkdir '{recursive: true}' doesn't seem to work so here's this little util

Install

npm install --save git+https://github.com/anzerr/fs.mkdirp.git
npm install --save @anzerr/fs.mkdirp

Example

const mkdir = require('fs.mkdirp');

mkdir('foo/bar/cat/dog').catch(console.log);