ensure-directory
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ensure-directory

A promise based node.js module that checks to see if a directory exists and if it doesn't, it creates it for you.

Install

npm install ensure-directory

Usage

\\ Typescript
import ensureDirectory from 'ensure-directory';

\\ ES6
const ED = require('ensure-directory');
ED.ensureDirectory('/tmp/test').then(...);

Package Sidebar

Install

npm i ensure-directory

Weekly Downloads

5

Version

1.0.2

License

ISC

Last publish

Collaborators

  • mannyyang