📜  npm fs zip - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:33.895000             🧑  作者: Mango

代码示例1
import * as fs from 'fs-zip' // Zip operationsfs.readdir('/home/user/Documents/test.zip/subdir')    .then(res => console.log(res)) fs.readFile('/home/user/Documents/test.zip/subdir/file.txt', 'utf8', (err, text) => {    console.log(text)}) // Filesystem operationsfs.readdir('/home/user/Documents/')    .then(res => console.log(res)) fs.readFile('/home/user/Documents/file.txt', 'utf8', (err, text) => {    console.log(text)})