Sha256: 0799b5383a30f7354fe420391b914b7edd9276fd5232a00024b6fece0c0a19b0
Contents?: true
Size: 604 Bytes
Versions: 29
Compression:
Stored size: 604 Bytes
Contents
/*! * global-modules <https://github.com/jonschlinkert/global-modules> * * Copyright (c) 2015-2017 Jon Schlinkert. * Licensed under the MIT license. */ 'use strict'; var path = require('path'); var prefix = require('global-prefix'); var isWindows = require('is-windows'); var gm; 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()); } });
Version data entries
29 entries across 28 versions & 10 rubygems