{
	"name": "fs-mkdirp-stream",
	"versions": {
		"1.0.0": {
			"name": "fs-mkdirp-stream",
			"version": "1.0.0",
			"description": "Ensure directories exist before writing to them.",
			"author": {
				"name": "Gulp Team",
				"email": "team@gulpjs.com",
				"url": "http://gulpjs.com/"
			},
			"contributors": [
				{
					"name": "Blaine Bublitz",
					"email": "blaine.bublitz@gmail.com"
				}
			],
			"repository": {
				"type": "git",
				"url": "git+https://github.com/gulpjs/fs-mkdirp-stream.git"
			},
			"license": "MIT",
			"engines": {
				"node": ">= 0.10"
			},
			"main": "index.js",
			"files": [
				"LICENSE",
				"index.js",
				"mkdirp.js"
			],
			"scripts": {
				"lint": "eslint index.js mkdirp.js test/ && jscs index.js mkdirp.js test/",
				"pretest": "npm run lint",
				"test": "mocha --async-only",
				"cover": "istanbul cover _mocha --report lcovonly",
				"coveralls": "npm run cover && istanbul-coveralls"
			},
			"dependencies": {
				"graceful-fs": "^4.1.11",
				"through2": "^2.0.3"
			},
			"devDependencies": {
				"eslint": "^1.10.3",
				"eslint-config-gulp": "^2.0.0",
				"expect": "^1.20.2",
				"istanbul": "^0.4.3",
				"istanbul-coveralls": "^1.0.3",
				"jscs": "^2.4.0",
				"jscs-preset-gulp": "^1.0.0",
				"mississippi": "^1.3.0",
				"mocha": "^3.2.0",
				"rimraf": "^2.6.1"
			},
			"keywords": [
				"fs",
				"mkdirp",
				"stream",
				"mkdir",
				"directory",
				"directories",
				"ensure"
			],
			"gitHead": "3a27851dc08f43dbe2d3fda2dddef34c67408715",
			"bugs": {
				"url": "https://github.com/gulpjs/fs-mkdirp-stream/issues"
			},
			"homepage": "https://github.com/gulpjs/fs-mkdirp-stream#readme",
			"_id": "fs-mkdirp-stream@1.0.0",
			"_shasum": "0b7815fc3201c6a69e14db98ce098c16935259eb",
			"_from": ".",
			"_npmVersion": "2.15.2",
			"_nodeVersion": "0.10.41",
			"_npmUser": {
				"name": "phated",
				"email": "blaine.bublitz@gmail.com"
			},
			"maintainers": [
				{
					"name": "phated",
					"email": "blaine.bublitz@gmail.com"
				}
			],
			"dist": {
				"shasum": "0b7815fc3201c6a69e14db98ce098c16935259eb",
				"tarball": "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz"
			},
			"_npmOperationalInternal": {
				"host": "packages-18-east.internal.npmjs.com",
				"tmp": "tmp/fs-mkdirp-stream-1.0.0.tgz_1494720270021_0.31096577271819115"
			},
			"directories": {}
		}
	},
	"time": {
		"modified": "2018-08-18T22:55:35.801Z",
		"created": "2017-05-14T00:04:31.877Z",
		"1.0.0": "2017-05-14T00:04:31.877Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "1.0.0"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"279ce16ac01eb6fff927bdca8ef81055\"",
			"fetched": 1597847600294
		}
	},
	"_distfiles": {
		"fs-mkdirp-stream-1.0.0.tgz": {
			"url": "https://registry.npmjs.org/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz",
			"sha": "0b7815fc3201c6a69e14db98ce098c16935259eb",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"fs-mkdirp-stream-1.0.0.tgz": {
			"shasum": "0b7815fc3201c6a69e14db98ce098c16935259eb"
		}
	},
	"_rev": "11-6647ced4ce453647",
	"_id": "fs-mkdirp-stream",
	"readme": "<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# fs-mkdirp-stream\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nEnsure directories exist before writing to them.\n\n## Usage\n\n```js\nvar to = require('to2');\nvar from = require('from2');\nvar mkdirpStream = require('fs-mkdirp-stream');\n\nfrom.obj([{ dirname: '/path/to/my/', path: '/path/to/my/file.js' }])\n  .pipe(mkdirpStream.obj(function(obj, callback) {\n    // callback can take 3 arguments (err, dirname, mode)\n    callback(null, obj.dirname);\n  }))\n  .pipe(to.obj(function(obj) {\n    // This will be called once the directory exists\n    // obj === { dirname: '/path/to/my/', path: '/path/to/my/file.js' }\n  }));\n```\n\n## API\n\n### `mkdirpStream(resolver)`\n\nTakes a `resolver` function or string and returns a `through2` stream.\n\nIf the `resolver` is a function, it will be called once per chunk with the signature `(chunk, callback)`. The `callback(error, dirpath, mode)` must be called with the `dirpath` to be created as the 2nd parameter or an `error` as the 1st parameter; optionally with a `mode` as the 3rd parameter.\n\nIf the `resolver` is a string, it will be created/ensured for each chunk (e.g. if it were deleted between chunks, it would be recreated). When using a string, a custom `mode` can't be used.\n\n### `mkdirpStream.obj(resolver)`\n\nThe same as the top-level API but for object streams. See the example to see the benefit of object streams with this module.\n\n## License\n\nMIT\n\nContains a custom implementation of `mkdirp` originally based on https://github.com/substack/node-mkdirp (Licensed MIT/X11 - Copyright 2010 James Halliday) with heavy modification to better support custom modes.\n\n[downloads-image]: http://img.shields.io/npm/dm/fs-mkdirp-stream.svg\n[npm-url]: https://npmjs.com/package/fs-mkdirp-stream\n[npm-image]: http://img.shields.io/npm/v/fs-mkdirp-stream.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/fs-mkdirp-stream\n[travis-image]: http://img.shields.io/travis/gulpjs/fs-mkdirp-stream.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/fs-mkdirp-stream\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/fs-mkdirp-stream.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/fs-mkdirp-stream\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/fs-mkdirp-stream/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png"
}