make-dir
npmv5.1.0TypeScriptMake a directory and its parents if needed - Think `mkdir -p`
Safe to adopt
Yes — make-dir scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 364 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 364 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 9.3 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding make-dir to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=18
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the make-dir README.
import {makeDirectory} from 'make-dir';
const path = await makeDirectory('unicorn/rainbow/cake');
console.log(path);
//=> '/Users/sindresorhus/fun/unicorn/rainbow/cake'make-dir vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| make-dirthis page | 0 | 2 | MIT | 1 year ago |
| pkg-dirdeprecated | 0 | 1 | MIT | 14 hours ago |
| find-up-simple | 0 | 2 | MIT | 17 hours ago |
| find-up | 0 | 4 | MIT | 17 hours ago |
| escalade | 136.6M | 3 | MIT | 16 hours ago |
| glob-parent | 0 | 2 | ISC | 19 hours ago |
Dependencies
Declared by make-dir v5.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (8)
Used by
Popular packages that depend on make-dir.
Relationship graph
Dependencies (left) and dependents (right) of make-dir.
Frequently installed together
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
An AST-based pattern checker for JavaScript.
A comprehensive library for mime-type mapping
Find and load configuration from a package.json property, rc file, TypeScript module, and more!
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Generates and consumes source maps
An optimised way to copy'ing an object. A small and simple integration
Turn node's process.version into something useful.
Display differences clearly so people can review changes confidently.
Bare bones Promises/A+ implementation
resolve like require.resolve() on behalf of files asynchronously and synchronously
Implements performance.now (based on process.hrtime).
Release history
1 release in the last two years, typically about 165 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.1.0latest | 1 year ago | 9.3 KB | MIT |
| 5.0.0 | 2 years ago | 9.3 KB | MIT |
| 4.0.0 | 3 years ago | 9.7 KB | MIT |
| 3.1.0 | 6 years ago | 9.8 KB | MIT |
| 3.0.2 | 6 years ago | 9.9 KB | MIT |
| 3.0.1 | 6 years ago | 9.8 KB | MIT |
| 3.0.0 | 7 years ago | 9.3 KB | MIT |
| 2.1.0 | 7 years ago | 9.0 KB | MIT |
| 2.0.0 | 7 years ago | 7.7 KB | MIT |
| 1.3.0 | 8 years ago | 6.4 KB | MIT |
| 1.2.0 | 8 years ago | 6.3 KB | MIT |
| 1.1.0 | 9 years ago | — | MIT |
| 1.0.0 | 9 years ago | — | MIT |
Overview
make-dir is an npm package that make a directory and its parents if needed - Think `mkdir -p`. It has 2 known dependents in the graph. The latest version is 5.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need make a directory and its parents if needed - Think `mkdir -p` and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use make-dir?
Yes — make-dir scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 364 days ago.
How do I install make-dir?
Run `npm install make-dir` to add make-dir to your npm project.
What license is make-dir released under?
make-dir is distributed under the MIT license.
How popular is make-dir?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on make-dir.
Is make-dir still maintained?
The most recent release of make-dir (v5.1.0) was published 1 year ago.
Does make-dir run install scripts?
No. make-dir does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.