Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mkdirp with fs.mkdirSync(path, { recursive: true }) #835

Open
trivikr opened this issue Aug 18, 2024 · 0 comments
Open

Replace mkdirp with fs.mkdirSync(path, { recursive: true }) #835

trivikr opened this issue Aug 18, 2024 · 0 comments

Comments

@trivikr
Copy link

trivikr commented Aug 18, 2024

Is your feature request related to a problem? Please describe.

The mkdirp utility is used in db-migrate https://github.com/search?q=repo%3Adb-migrate%2Fnode-db-migrate%20mkdirp&type=code

It 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 with fs.mkdirSync(path, { recursive: true })

Additional context

The mkdirp currently uses these native APIs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant