![]() ![]() In the code block above, we used decompress to unzip the example.zip file and populate the dist folder with the resulting files. The optional configuration object uses array methods, such as map or filter, to perform certain operations on the files before extracting them: decompress("example.zip", "dist") The imported decompress method expects three arguments: Next, import the package: const decompress = require("decompress") To start unzipping with this package, install it with the command below: npm install decompress The decompress package is an npm package that simplifies archives extraction without blocking code execution using Promises.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |