| 1 |
{ |
| 2 |
"_id": "path-dirname", |
| 3 |
"_rev": "6-0e82c866df669cda46b0da45d3bf7a42", |
| 4 |
"name": "path-dirname", |
| 5 |
"time": { |
| 6 |
"modified": "2019-03-12T18:20:25.201Z", |
| 7 |
"created": "2016-10-18T15:48:44.940Z", |
| 8 |
"1.0.0": "2016-10-18T15:48:44.940Z", |
| 9 |
"1.0.1": "2016-10-18T17:14:25.090Z", |
| 10 |
"1.0.2": "2016-10-18T17:27:03.641Z" |
| 11 |
}, |
| 12 |
"maintainers": [ |
| 13 |
{ |
| 14 |
"email": "[email protected]", |
| 15 |
"name": "es128" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"email": "[email protected]", |
| 19 |
"name": "phated" |
| 20 |
} |
| 21 |
], |
| 22 |
"dist-tags": { |
| 23 |
"latest": "1.0.2" |
| 24 |
}, |
| 25 |
"description": "Node.js path.dirname() ponyfill", |
| 26 |
"readme": "# path-dirname [](https://travis-ci.org/es128/path-dirname)\n\n> Node.js [`path.dirname()`](https://nodejs.org/api/path.html#path_path_dirname_path) [ponyfill](https://ponyfill.com)\n\nThis was needed in order to expose `path.posix.dirname()` on Node.js v0.10\n\n## Install\n\n```\n$ npm install --save path-dirname\n```\n\n\n## Usage\n\n```js\nconst pathDirname = require('path-dirname');\n\npathDirname('/home/foo');\n//=> '/home'\npathDirname('C:\\\\Users\\\\foo');\n//=> 'C:\\\\Users'\npathDirname('foo');\n//=> '.'\npathDirname('foo/bar');\n//=> 'foo'\n\n//Using posix version for consistent output when dealing with glob escape chars\npathDirname.win32('C:\\\\Users\\\\foo/\\\\*bar');\n//=> 'C:\\\\Users\\\\foo/'\npathDirname.posix('C:\\\\Users\\\\foo/\\\\*bar');\n//=> 'C:\\\\Users\\\\foo'\n```\n\n\n## API\n\nSee the [`path.dirname()` docs](https://nodejs.org/api/path.html#path_path_dirname_path).\n\n### pathDirname(path)\n\n### pathDirname.posix(path)\n\nPOSIX specific version.\n\n### pathDirname.win32(path)\n\nWindows specific version.\n\n\n## License\n\nMIT\n", |
| 27 |
"versions": { |
| 28 |
"1.0.2": { |
| 29 |
"name": "path-dirname", |
| 30 |
"version": "1.0.2", |
| 31 |
"description": "Node.js path.dirname() ponyfill", |
| 32 |
"license": "MIT", |
| 33 |
"repository": { |
| 34 |
"type": "git", |
| 35 |
"url": "git+https://github.com/es128/path-dirname.git" |
| 36 |
}, |
| 37 |
"author": { |
| 38 |
"name": "Elan Shanker" |
| 39 |
}, |
| 40 |
"scripts": { |
| 41 |
"test": "node test.js" |
| 42 |
}, |
| 43 |
"files": [ |
| 44 |
"index.js" |
| 45 |
], |
| 46 |
"keywords": [ |
| 47 |
"dirname", |
| 48 |
"dir", |
| 49 |
"path", |
| 50 |
"paths", |
| 51 |
"file", |
| 52 |
"built-in", |
| 53 |
"util", |
| 54 |
"utils", |
| 55 |
"core", |
| 56 |
"stdlib", |
| 57 |
"ponyfill", |
| 58 |
"polyfill", |
| 59 |
"shim" |
| 60 |
], |
| 61 |
"gitHead": "ba28247b19f27ec3fa187088d6169241b223f9f8", |
| 62 |
"bugs": { |
| 63 |
"url": "https://github.com/es128/path-dirname/issues" |
| 64 |
}, |
| 65 |
"homepage": "https://github.com/es128/path-dirname#readme", |
| 66 |
"_id": "[email protected]", |
| 67 |
"_shasum": "cc33d24d525e099a5388c0336c6e32b9160609e0", |
| 68 |
"_from": ".", |
| 69 |
"_npmVersion": "3.8.6", |
| 70 |
"_nodeVersion": "5.12.0", |
| 71 |
"_npmUser": { |
| 72 |
"name": "es128", |
| 73 |
"email": "[email protected]" |
| 74 |
}, |
| 75 |
"dist": { |
| 76 |
"shasum": "cc33d24d525e099a5388c0336c6e32b9160609e0", |
| 77 |
"tarball": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz" |
| 78 |
}, |
| 79 |
"maintainers": [ |
| 80 |
{ |
| 81 |
"name": "es128", |
| 82 |
"email": "[email protected]" |
| 83 |
} |
| 84 |
], |
| 85 |
"_npmOperationalInternal": { |
| 86 |
"host": "packages-12-west.internal.npmjs.com", |
| 87 |
"tmp": "tmp/path-dirname-1.0.2.tgz_1476811621782_0.25002457783557475" |
| 88 |
}, |
| 89 |
"directories": {} |
| 90 |
} |
| 91 |
}, |
| 92 |
"homepage": "https://github.com/es128/path-dirname#readme", |
| 93 |
"keywords": [ |
| 94 |
"dirname", |
| 95 |
"dir", |
| 96 |
"path", |
| 97 |
"paths", |
| 98 |
"file", |
| 99 |
"built-in", |
| 100 |
"util", |
| 101 |
"utils", |
| 102 |
"core", |
| 103 |
"stdlib", |
| 104 |
"ponyfill", |
| 105 |
"polyfill", |
| 106 |
"shim" |
| 107 |
], |
| 108 |
"repository": { |
| 109 |
"type": "git", |
| 110 |
"url": "git+https://github.com/es128/path-dirname.git" |
| 111 |
}, |
| 112 |
"author": { |
| 113 |
"name": "Elan Shanker" |
| 114 |
}, |
| 115 |
"bugs": { |
| 116 |
"url": "https://github.com/es128/path-dirname/issues" |
| 117 |
}, |
| 118 |
"license": "MIT", |
| 119 |
"readmeFilename": "readme.md" |
| 120 |
} |