1.0.1 • Published 3 years ago
mingtianrikao v1.0.1
2020.11.18mtrikao
const fs = require("fs");
const path = require("path");
let str = "";
fs.readdirSync("src").forEach(pathname => {
const realpath = path.join("src",pathname)
if(path.extname(realpath) === ".js"){
str += fs.readFileSync(realpath)
}
})
console.log(str);
fs.writeFileSync("concat.js",src)