UNPKG

find-node-modules

Version:

Return an array of all parent node_modules directories

31 lines (24 loc) 515 B
var stats = require('./stats') var bar = require('./bar') var path = require('path') stats.incFooRequires() function bigBar () { // inline require return require('./bar').bar().toUpperCase() } function bigRab () { // module wide require return bar.rab().toUpperCase() } function bigExt (file) { return path.extname(file).toUpperCase() } function bigBas (file) { return path.basename(file).toUpperCase() } module.exports = { bigBar: bigBar, bigRab: bigRab, bigExt: bigExt, bigBas: bigBas }