Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/mkdirp

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mkdirp - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

34

mkdirp/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for mkdirp 0.5.1
// Type definitions for mkdirp 0.5
// Project: https://github.com/substack/node-mkdirp
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -8,8 +9,33 @@

declare function mkdirp(dir: string, cb: (err: NodeJS.ErrnoException, made: string) => void): void;
declare function mkdirp(dir: string, opts: any, cb: (err: NodeJS.ErrnoException, made: string) => void): void;
import fs = require('fs');
declare function mkdirp(dir: string, cb: (err: NodeJS.ErrnoException, made: mkdirp.Made) => void): void;
declare function mkdirp(dir: string, opts: mkdirp.Mode | mkdirp.Options, cb: (err: NodeJS.ErrnoException, made: mkdirp.Made) => void): void;
declare namespace mkdirp {
function sync(dir: string, opts?: any): string;
type Made = string | null;
type Mode = number | string | null;
interface FsImplementation {
mkdir: typeof fs.mkdir;
stat: typeof fs.stat;
}
interface FsImplementationSync {
mkdirSync: typeof fs.mkdirSync;
statSync: typeof fs.statSync;
}
interface Options {
mode?: Mode;
fs?: FsImplementation;
}
interface OptionsSync {
mode?: Mode;
fs?: FsImplementationSync;
}
function sync(dir: string, opts?: Mode | OptionsSync): Made;
}
export = mkdirp;

12

mkdirp/package.json
{
"name": "@types/mkdirp",
"version": "0.5.1",
"version": "0.5.2",
"description": "TypeScript definitions for mkdirp",

@@ -9,3 +9,9 @@ "license": "MIT",

"name": "Bart van der Schoor",
"url": "https://github.com/Bartvds"
"url": "https://github.com/Bartvds",
"githubUsername": "Bartvds"
},
{
"name": "mrmlnc",
"url": "https://github.com/mrmlnc",
"githubUsername": "mrmlnc"
}

@@ -22,4 +28,4 @@ ],

},
"typesPublisherContentHash": "1b3dd423d30162206701a9c2e1b14d2f1f0e426aa464e80aee71f479d36d5de7",
"typesPublisherContentHash": "af65553f1d10b41c6e6f6dab4dba6316aa992f1c55f415d3ce95db9302f75afa",
"typeScriptVersion": "2.0"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT
* Dependencies: node
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT
* Dependencies: fs, node
* Global values: none
# Credits
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>.
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, mrmlnc <https://github.com/mrmlnc>.
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