UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

129 lines (128 loc) 6.81 kB
{ "_args": [ [ { "raw": "make-dir@^1.0.0", "scope": null, "escapedName": "make-dir", "name": "make-dir", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/write-json-file" ] ], "_from": "make-dir@>=1.0.0 <2.0.0", "_id": "make-dir@1.3.0", "_inCache": true, "_location": "/make-dir", "_nodeVersion": "8.11.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/make-dir_1.3.0_1525960375355_0.21501361126034468" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "make-dir@^1.0.0", "scope": null, "escapedName": "make-dir", "name": "make-dir", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/configstore", "/write-json-file", "/write-pkg/write-json-file" ], "_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", "_shasum": "79c1033b80515bd6d24ec9933e860ca75ee27f0c", "_shrinkwrap": null, "_spec": "make-dir@^1.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/write-json-file", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/make-dir/issues" }, "dependencies": { "pify": "^3.0.0" }, "description": "Make a directory and its parents if needed - Think `mkdir -p`", "devDependencies": { "ava": "*", "codecov": "^3.0.0", "graceful-fs": "^4.1.11", "nyc": "^11.3.0", "path-type": "^3.0.0", "tempy": "^0.2.1", "xo": "^0.20.0" }, "directories": {}, "dist": { "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", "shasum": "79c1033b80515bd6d24ec9933e860ca75ee27f0c", "tarball": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", "fileCount": 4, "unpackedSize": 6525, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9E64CRA9TVsSAnZWagAAtRIP/2xNUbh+k8l3ZZTPipTQ\ny55O3BfyWR9scXFf1Mnw2RbGmDYiahyV/q0L3xcoEEeZZdyBD5DUTM2HjTwy\nLsFIP7/d4Z5XkYBDpFG2Anfy8tc/flW1+WVW+bo0IrdVWHCAc1SE01XWwcEn\nmmCBI8vwFSwC8VxhPhSTjZIfKtwK7P+muo2Kn/ovPOH1fF6iptClFIi/Danp\nKw5/sdxbKL2fXvDY9H9/I1gQ54wUpfA/f6mgZhdW+e6z6epf4nznRT/6ATSD\n45ycc4OXBJ4SHXO1BWUcX73a9mXE0sDtDhX8Jsd1StEUY+km31W4RQBdwMKi\nJBnrvW/0Rb39LvzJAhAc7s5KHWhBVUTlmO9S+4cxFVAT7f/nGkHtzlYx11cZ\nk1tlIZgblHa5P33AzBZeW+s+E3VIL+6K/7H7PPipyPX94iwUKUskZpnBiE3j\nufZAB5g7GKDoSYHte0MJF0NMVVLPcnMBBEQULGGxGWRRXorMHVQZuAPl2vsK\nZ/4wzI6uzkA+gRbawKHf8H0F6nb4LTMmVdkNdlMUOBDSZk5bVDKPYfKGEnAg\nXp8c504hr48qkRMhlcon7Zc4Wqco+9ThCj2J64qTgY1jgKiBztjZ2uquUflN\nt8jjzpnzKJzbvp5Y93fKGePBvVO6oEmFTT5Yr08fWl3zYPE+vsqZwP7Y5Gdk\n8NRz\r\n=i0G+\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "e962394d01198a961d42272f1e849ab601aaef1e", "homepage": "https://github.com/sindresorhus/make-dir#readme", "keywords": [ "mkdir", "mkdirp", "make", "directories", "dir", "dirs", "folders", "directory", "folder", "path", "parent", "parents", "intermediate", "recursively", "recursive", "create", "fs", "filesystem", "file-system" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "make-dir", "optionalDependencies": {}, "readme": "# make-dir [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/e0vtt8y600w91gcs/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/make-dir/branch/master) [![codecov](https://codecov.io/gh/sindresorhus/make-dir/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/make-dir)\n\n> Make a directory and its parents if needed - Think `mkdir -p`\n\n\n## Advantages over [`mkdirp`](https://github.com/substack/node-mkdirp)\n\n- Promise API *(Async/await ready!)*\n- Fixes many `mkdirp` issues: [#96](https://github.com/substack/node-mkdirp/pull/96) [#70](https://github.com/substack/node-mkdirp/issues/70) [#66](https://github.com/substack/node-mkdirp/issues/66)\n- 100% test coverage\n- CI-tested on macOS, Linux, and Windows\n- Actively maintained\n- Doesn't bundle a CLI\n\n\n## Install\n\n```\n$ npm install make-dir\n```\n\n\n## Usage\n\n```\n$ pwd\n/Users/sindresorhus/fun\n$ tree\n.\n```\n\n```js\nconst makeDir = require('make-dir');\n\nmakeDir('unicorn/rainbow/cake').then(path => {\n\tconsole.log(path);\n\t//=> '/Users/sindresorhus/fun/unicorn/rainbow/cake'\n});\n```\n\n```\n$ tree\n.\n└── unicorn\n └── rainbow\n └── cake\n```\n\nMultiple directories:\n\n```js\nconst makeDir = require('make-dir');\n\nPromise.all([\n\tmakeDir('unicorn/rainbow')\n\tmakeDir('foo/bar')\n]).then(paths => {\n\tconsole.log(paths);\n\t/*\n\t[\n\t\t'/Users/sindresorhus/fun/unicorn/rainbow',\n\t\t'/Users/sindresorhus/fun/foo/bar'\n\t]\n\t*/\n});\n```\n\n\n## API\n\n### makeDir(path, [options])\n\nReturns a `Promise` for the path to the created directory.\n\n### makeDir.sync(path, [options])\n\nReturns the path to the created directory.\n\n#### path\n\nType: `string`\n\nDirectory to create.\n\n#### options\n\nType: `Object`\n\n##### mode\n\nType: `integer`<br>\nDefault: `0o777 & (~process.umask())`\n\nDirectory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/).\n\n##### fs\n\nType: `Object`<br>\nDefault: `require('fs')`\n\nUse a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs).\n\n\n## Related\n\n- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - CLI for this module\n- [del](https://github.com/sindresorhus/del) - Delete files and directories\n- [globby](https://github.com/sindresorhus/globby) - User-friendly glob matching\n- [cpy](https://github.com/sindresorhus/cpy) - Copy files\n- [cpy-cli](https://github.com/sindresorhus/cpy-cli) - Copy files on the command-line\n- [move-file](https://github.com/sindresorhus/move-file) - Move a file\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/make-dir.git" }, "scripts": { "test": "xo && nyc ava" }, "version": "1.3.0" }