UNPKG

pnpm

Version:

Fast, disk space efficient package manager

132 lines (131 loc) 7.12 kB
{ "_args": [ [ { "raw": "make-dir@^2.1.0", "scope": null, "escapedName": "make-dir", "name": "make-dir", "rawSpec": "^2.1.0", "spec": ">=2.1.0 <3.0.0", "type": "range" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/write-json-file" ] ], "_from": "make-dir@^2.1.0", "_hasShrinkwrap": false, "_id": "make-dir@2.1.0", "_location": "/make-dir", "_nodeVersion": "10.15.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/make-dir_2.1.0_1551642020600_0.43649614195121145" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "6.8.0", "_phantomChildren": {}, "_requested": { "raw": "make-dir@^2.1.0", "scope": null, "escapedName": "make-dir", "name": "make-dir", "rawSpec": "^2.1.0", "spec": ">=2.1.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/write-json-file" ], "_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "_shasum": "5f0310e18b8be898cc07009295a30ae41e91e6f5", "_shrinkwrap": null, "_spec": "make-dir@^2.1.0", "_where": "/home/zoltan/src/pnpm/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": "^4.0.1", "semver": "^5.6.0" }, "description": "Make a directory and its parents if needed - Think `mkdir -p`", "devDependencies": { "@types/graceful-fs": "^4.1.3", "@types/node": "^11.10.4", "ava": "^1.2.0", "codecov": "^3.0.0", "graceful-fs": "^4.1.11", "nyc": "^13.1.0", "path-type": "^3.0.0", "tempy": "^0.2.1", "tsd-check": "^0.3.0", "xo": "^0.24.0" }, "directories": {}, "dist": { "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", "shasum": "5f0310e18b8be898cc07009295a30ae41e91e6f5", "tarball": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "fileCount": 5, "unpackedSize": 9198, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfC2lCRA9TVsSAnZWagAAwpEP/2KxMsEidauM1H7Irlli\nCnz82p0XueCmHs1eAXgwPhG20Kf6LzmAtKQtDNZdrfcjPcWhL+4NYmPGlzeE\nPibVyLlR0zjqVfJcT/mEJhJyxiQ9DK+3cdH/qgkBjXxR6Hk5d0Q2EgzUOIIg\nLogLCVbd06bMJYljhW5P3dIZxDHhNVnHud5retu5lkB6QwgQnB/GGsAKFqRO\nhH/haetn9YOQYz8NFXA8CbI+LrWcLWMmYnrjSC1QJE8DuxR8QoFBbpur7MSh\nyEFOqY6QNlyDV+vpLQG9QOn8kvE07ZCOCljDPS2yE2/TKUhbz/GHy3dzOt08\n6hdKbhRhvP0DuKaJX3a9xhHGyPq5/Gqrt+fpJKJiPwjuBOizcN8EF+PksJdD\nqWUnW9CxI0s2RDWDSE/+cPfkYGRponT41/5piLLldFIjfXsT2JGKNNWfRKOC\niKCEKVWLB4odXZpby1oVcXBOrLOoHkQAWlDf1058nPHkYG35bwzcTeI0Pgsz\nkKQGK1SP0DIyFemGpgb9iP9AyTmo4qs2DOE3K7Oh4p+EeydZUM4i0B63B3fp\nhpM87irlqpHC+EcYW6ry94MkFVRVunXLJIRW85qphMc7bI9Q/FQnchnsqa3W\nju6omAFllTZX3M4hV72wczEt3DzZmd255TMYcEOzTjVnTEePwcbXng6bHNa1\nBexC\r\n=CTEd\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=6" }, "files": [ "index.js", "index.d.ts" ], "gitHead": "1c36213da8b2e13306ab4704ea861742bbbe7a40", "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](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![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- Uses native the `fs.mkdir/mkdirSync` [`recursive` option](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_mkdir_path_options_callback) in Node.js >=10.12.0 unless [overridden](#fs)\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\n(async () => {\n\tconst path = await makeDir('unicorn/rainbow/cake');\n\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\n(async () => {\n\tconst paths = await Promise.all([\n\t\tmakeDir('unicorn/rainbow'),\n\t\tmakeDir('foo/bar')\n\t]);\n\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\nUsing a custom `fs` implementation will block the use of the native `recursive` option if `fs.mkdir` or `fs.mkdirSync` is not the native function.\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 && tsd-check" }, "version": "2.1.0" }