charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
19 lines (15 loc) • 423 B
JavaScript
/*!
* global-modules <https://github.com/jonschlinkert/global-modules>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
;
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');
}