Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / 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