create-wasm-app
create-wasm-app copied to clipboard
mkdirp
If the optional folder is more than one level deep, mkdirSync will fail. I know this is true for some node versions at least, but I have not checked the latest if the API changed (I doubt it). One solution is use package mkdirp, another is manually splitting path string and creating a folder for each.
Note: this uses fs.exists too, but Node.js recommends issuing fs.stat to check for a folder's existence. I don't know how any of those functions react to multiple dirs away.