New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fibjs/mkdirp

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fibjs/mkdirp

Recursively mkdir, like `mkdir -p`

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
increased by585.71%
Maintainers
3
Weekly downloads
 
Created
Source

@fibjs/mkdirp

NPM version build status appveyor build status Test coverage David deps Known Vulnerabilities npm download

Like mkdir -p, but in fibjs!

Install

$ npm i @fibjs/mkdirp --save

Usage

const mkdirp = require('@fibjs/mkdirp');

try{
	mkdirp('/tmp/a/c/d')
} catch(err) {
	console.error(err)
}

then /tmp/a/c/d has beed created.

API

  • mkdirp(dir, opts)

asynchronously create a new directory and any necessary subdirectories at dir with octal permission string opts.mode. If opts is a non-object, it will be treated as the opts.mode.

If opts.mode isn't specified, it defaults to 0777 & (~process.umask()).

Returns the first directory that had to be created, if any.

You can optionally pass in an alternate fs implementation by passing in opts.fs. Your implementation should have opts.fs.mkdir(path, mode) and opts.fs.stat(path).

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

FAQs

Package last updated on 01 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc