mingtianrikao
v1.0.1
Published
```js 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)
Downloads
5
Readme
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)