Open trivikr opened 3 months ago
The mkdirp utility is used in mocha-junit-reporter https://github.com/search?q=repo%3Amichaelleeallen%2Fmocha-junit-reporter%20mkdirp&type=code
mkdirp
It can be replaced with Node.js native fs.mkdirSync added recursive option in Node.js v10.12.0 published on Oct 10, 2018.
recursive
Replace mkdirp with fs.mkdirSync(path, { recursive: true })
fs.mkdirSync(path, { recursive: true })
The mkdirp currently uses these native APIs:
Is your feature request related to a problem? Please describe.
The
mkdirp
utility is used in mocha-junit-reporter https://github.com/search?q=repo%3Amichaelleeallen%2Fmocha-junit-reporter%20mkdirp&type=codeIt can be replaced with Node.js native fs.mkdirSync added
recursive
option in Node.js v10.12.0 published on Oct 10, 2018.Describe the solution you'd like
Replace
mkdirp
withfs.mkdirSync(path, { recursive: true })
Additional context
The
mkdirp
currently uses these native APIs: