Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

npm fs zip

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)}) 
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #npm #fs #zip
ADD COMMENT
Topic
Name
7+2 =