/node_modules/express/node_modules/mkdirp/package.json
JSON | 32 lines | 32 code | 0 blank | 0 comment | 0 complexity | 5637cd111397c716d93d57b317c5a389 MD5 | raw file
Possible License(s): Apache-2.0, MIT
1{ 2 "name": "mkdirp", 3 "description": "Recursively mkdir, like `mkdir -p`", 4 "version": "0.3.3", 5 "author": { 6 "name": "James Halliday", 7 "email": "mail@substack.net", 8 "url": "http://substack.net" 9 }, 10 "main": "./index", 11 "keywords": [ 12 "mkdir", 13 "directory" 14 ], 15 "repository": { 16 "type": "git", 17 "url": "http://github.com/substack/node-mkdirp.git" 18 }, 19 "scripts": { 20 "test": "tap test/*.js" 21 }, 22 "devDependencies": { 23 "tap": "~0.2.4" 24 }, 25 "license": "MIT/X11", 26 "engines": { 27 "node": "*" 28 }, 29 "readme": "mkdirp\n======\n\nLike `mkdir -p`, but in node.js!\n\n[](http://travis-ci.org/substack/node-mkdirp)\n\nexample\n=======\n\npow.js\n------\n var mkdirp = require('mkdirp');\n \n mkdirp('/tmp/foo/bar/baz', function (err) {\n if (err) console.error(err)\n else console.log('pow!')\n });\n\nOutput\n pow!\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\nmethods\n=======\n\nvar mkdirp = require('mkdirp');\n\nmkdirp(dir, mode, cb)\n---------------------\n\nCreate a new directory and any necessary subdirectories at `dir` with octal\npermission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\n`cb(err, made)` fires with the error or the first directory `made`\nthat had to be created, if any.\n\nmkdirp.sync(dir, mode)\n----------------------\n\nSynchronously create a new directory and any necessary subdirectories at `dir`\nwith octal permission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\nReturns the first directory that had to be created, if any.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n npm install mkdirp\n\nlicense\n=======\n\nMIT/X11\n", 30 "_id": "mkdirp@0.3.3", 31 "_from": "mkdirp@0.3.3" 32}