UNPKG

find-node-modules

Version:

Return an array of all parent node_modules directories

14 lines (11 loc) 290 B
'use strict'; exports.isatty = function isatty() { return true; }; exports.getWindowSize = function getWindowSize() { if ('innerHeight' in global) { return [global.innerHeight, global.innerWidth]; } // In a Web Worker, the DOM Window is not available. return [640, 480]; };