Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-79-npm / shelljs / shelljs.js
248 bytesRaw
1 | ; |
2 | |
3 | var shell = require('shelljs'); |
4 | var windows = process.platform === 'win32'; |
5 | var result = shell.exec(windows ? 'dir' : 'ls', { silent: true }); |
6 | var data = result.stdout || result.output; |
7 | if (data.length >= 2) { |
8 | console.log('ok'); |
9 | } |
10 |
Built with git-ssb-web