zy-ttt
v1.1.0
Published
发包的第一天,加油!!!! ```const fs = require("fs"); const add = (path) => { let data = fs.readFileSync(path, "utf-8") console.log("读取当前文件内容" + data) fs.stat(path, (error, stats) => { console.log("文件大小" + stats.size) })
Downloads
3
Readme
#小野demo 发包的第一天,加油!!!!
const add = (path) => {
let data = fs.readFileSync(path, "utf-8")
console.log("读取当前文件内容" + data)
fs.stat(path, (error, stats) => {
console.log("文件大小" + stats.size)
})
}
module.exports = add("ttt.html");```