diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/global-modules | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/global-modules')
-rw-r--r-- | node_modules/global-modules/LICENSE | 4 | ||||
-rw-r--r-- | node_modules/global-modules/README.md | 40 | ||||
-rw-r--r-- | node_modules/global-modules/index.js | 23 | ||||
-rw-r--r-- | node_modules/global-modules/package.json | 24 |
4 files changed, 60 insertions, 31 deletions
diff --git a/node_modules/global-modules/LICENSE b/node_modules/global-modules/LICENSE index 1e49edf81..c0d7f1362 100644 --- a/node_modules/global-modules/LICENSE +++ b/node_modules/global-modules/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2016, Jon Schlinkert. +Copyright (c) 2015-2017, Jon Schlinkert. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE.
\ No newline at end of file diff --git a/node_modules/global-modules/README.md b/node_modules/global-modules/README.md index 4c8280ed0..a076f65c0 100644 --- a/node_modules/global-modules/README.md +++ b/node_modules/global-modules/README.md @@ -1,6 +1,6 @@ -# global-modules [](https://www.npmjs.com/package/global-modules) [](https://npmjs.org/package/global-modules) [](https://travis-ci.org/jonschlinkert/global-modules) +# global-modules [](https://www.npmjs.com/package/global-modules) [](https://npmjs.org/package/global-modules) [](https://npmjs.org/package/global-modules) [](https://travis-ci.org/jonschlinkert/global-modules) -The directory used by npm for globally installed npm modules. +> The directory used by npm for globally installed npm modules. ## Install @@ -13,39 +13,49 @@ $ npm install --save global-modules ## Usage ```js -var dir = require('global-modules'); -//=> '/usr/local/lib/node_modules' (depends on OS) +var globalModules = require('global-modules'); +console.log(globalModules); +//=> '/usr/local/lib/node_modules' ``` +_(Note that this path might be different based on OS or user defined configuration settings)_ ## About ### Related projects -* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path "Return true if a file path contains the given path.") -* [git-config-path](https://www.npmjs.com/package/git-config-path): Resolve the path to the user's global .gitconfig. | [homepage](https://github.com/jonschlinkert/git-config-path "Resolve the path to the user's global .gitconfig.") +* [git-config-path](https://www.npmjs.com/package/git-config-path): Resolve the path to the user's local or global .gitconfig. | [homepage](https://github.com/jonschlinkert/git-config-path "Resolve the path to the user's local or global .gitconfig.") * [global-prefix](https://www.npmjs.com/package/global-prefix): Get the npm global path prefix. | [homepage](https://github.com/jonschlinkert/global-prefix "Get the npm global path prefix.") +* [homedir-polyfill](https://www.npmjs.com/package/homedir-polyfill): Node.js os.homedir polyfill for older versions of node.js. | [homepage](https://github.com/doowb/homedir-polyfill "Node.js os.homedir polyfill for older versions of node.js.") * [npm-paths](https://www.npmjs.com/package/npm-paths): Returns an array of unique "npm" directories based on the user's platform and environment. | [homepage](https://github.com/jonschlinkert/npm-paths "Returns an array of unique "npm" directories based on the user's platform and environment.") ### Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 14 | [jonschlinkert](https://github.com/jonschlinkert) | +| 1 | [jason-chang](https://github.com/jason-chang) | +| 1 | [Kikobeats](https://github.com/Kikobeats) | + ### Building docs -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): +To generate the readme, run the following command: ```sh -$ npm install -g verb verb-generate-readme && verb +$ npm install -g verbose/verb#dev verb-generate-readme && verb ``` ### Running tests -Install dev dependencies: +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: ```sh -$ npm install -d && npm test +$ npm install && npm test ``` ### Author @@ -53,13 +63,13 @@ $ npm install -d && npm test **Jon Schlinkert** * [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) +* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) ### License -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/global-modules/blob/master/LICENSE). +Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). *** -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 26, 2016._
\ No newline at end of file +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 28, 2017._
\ No newline at end of file diff --git a/node_modules/global-modules/index.js b/node_modules/global-modules/index.js index 5fbab5743..e4c2b8b1a 100644 --- a/node_modules/global-modules/index.js +++ b/node_modules/global-modules/index.js @@ -1,7 +1,7 @@ /*! * global-modules <https://github.com/jonschlinkert/global-modules> * - * Copyright (c) 2015 Jon Schlinkert. + * Copyright (c) 2015-2017 Jon Schlinkert. * Licensed under the MIT license. */ @@ -10,9 +10,22 @@ var path = require('path'); var prefix = require('global-prefix'); var isWindows = require('is-windows'); +var gm; -if (isWindows()) { - module.exports = path.resolve(prefix, 'node_modules'); -} else { - module.exports = path.resolve(prefix, 'lib/node_modules'); +function getPath() { + if (isWindows()) { + return path.resolve(prefix, 'node_modules'); + } + return path.resolve(prefix, 'lib/node_modules'); } + +/** + * Expose `global-modules` path + */ + +Object.defineProperty(module, 'exports', { + enumerable: true, + get: function() { + return gm || (gm = getPath()); + } +}); diff --git a/node_modules/global-modules/package.json b/node_modules/global-modules/package.json index 420e870ce..35430bb18 100644 --- a/node_modules/global-modules/package.json +++ b/node_modules/global-modules/package.json @@ -1,9 +1,14 @@ { "name": "global-modules", "description": "The directory used by npm for globally installed npm modules.", - "version": "0.2.3", + "version": "1.0.0", "homepage": "https://github.com/jonschlinkert/global-modules", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "JasonChang (https://packagist.org/packages/jason-chang)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Kiko Beats (https://kikobeats.com)" + ], "repository": "jonschlinkert/global-modules", "bugs": { "url": "https://github.com/jonschlinkert/global-modules/issues" @@ -20,19 +25,20 @@ "test": "mocha" }, "dependencies": { - "global-prefix": "^0.1.4", - "is-windows": "^0.2.0" + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" }, "devDependencies": { - "fs-exists-sync": "^0.1.0", - "gulp-format-md": "^0.1.9", - "mocha": "^2.5.3" + "gulp-format-md": "^0.1.12", + "mocha": "^3.4.2" }, "keywords": [ "directory", "dirname", "global", "module", + "modules", "package", "path", "prefix", @@ -50,10 +56,10 @@ ], "related": { "list": [ - "global-prefix", + "homedir-polyfill", "git-config-path", - "npm-paths", - "contains-path" + "global-prefix", + "npm-paths" ] }, "reflinks": [ |