mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 15:51:06 +00:00
13 lines
264 B
JavaScript
13 lines
264 B
JavaScript
|
|
var fs = require('fs');
|
|
var nodeModules = {};
|
|
fs.readdirSync('node_modules')
|
|
.filter(function(x) {
|
|
return ['.bin'].indexOf(x) === -1;
|
|
})
|
|
.forEach(function(mod) {
|
|
nodeModules[mod] = 'commonjs ' + mod;
|
|
});
|
|
|
|
console.log(nodeModules);
|