</>PackageGraphPackageGraph

make-dir

npmv5.1.0TypeScript

Make 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

9.3 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
make-dirthis page02MIT1 year ago
pkg-dirdeprecated01MIT14 hours ago
find-up-simple02MIT17 hours ago
find-up04MIT17 hours ago
escalade136.6M3MIT16 hours ago
glob-parent02ISC19 hours ago

Dependencies

Declared by make-dir v5.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (8)

@types/graceful-fs ^4.1.9@types/node ^20.12.8ava ^6.1.2graceful-fs ^4.2.11path-type ^5.0.0tempy ^3.1.0tsd ^0.31.0xo ^0.58.0

Used by

Popular packages that depend on make-dir.

Relationship graph

Dependencies (left) and dependents (right) of make-dir.

lessistanbul-lib-repo…make-dir
make-dir dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 165 days apart.

Recent versions of make-dir
VersionPublishedSizeLicense
5.1.0latest1 year ago9.3 KBMIT
5.0.02 years ago9.3 KBMIT
4.0.03 years ago9.7 KBMIT
3.1.06 years ago9.8 KBMIT
3.0.26 years ago9.9 KBMIT
3.0.16 years ago9.8 KBMIT
3.0.07 years ago9.3 KBMIT
2.1.07 years ago9.0 KBMIT
2.0.07 years ago7.7 KBMIT
1.3.08 years ago6.4 KBMIT
1.2.08 years ago6.3 KBMIT
1.1.09 years agoMIT
1.0.09 years agoMIT

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

Keywords

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.