wallet-core/node_modules/global-modules/index.js

19 lines
423 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
/*!
* global-modules <https://github.com/jonschlinkert/global-modules>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
'use strict';
var path = require('path');
var prefix = require('global-prefix');
var isWindows = require('is-windows');
if (isWindows()) {
module.exports = path.resolve(prefix, 'node_modules');
} else {
module.exports = path.resolve(prefix, 'lib/node_modules');
}