5fbab57435f9ad9f7345f5c170b04b12cd1dc2e8
[yaffs-website] / index.js
1 /*!
2  * global-modules <https://github.com/jonschlinkert/global-modules>
3  *
4  * Copyright (c) 2015 Jon Schlinkert.
5  * Licensed under the MIT license.
6  */
7
8 'use strict';
9
10 var path = require('path');
11 var prefix = require('global-prefix');
12 var isWindows = require('is-windows');
13
14 if (isWindows()) {
15   module.exports = path.resolve(prefix, 'node_modules');
16 } else {
17   module.exports = path.resolve(prefix, 'lib/node_modules');
18 }