mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +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);
|