showing results for - "open gz file node"
Sophie
13 Sep 2018
1'use strict'
2
3const gunzip = require('gunzip-file')
4
5// 'sitemap.xml.gz' - source file
6// 'sitemap.xml'    - destination file
7// () => { ... }    - notification callback
8gunzip('sitemap.xml.gz', 'sitemap.xml', () => {
9  console.log('gunzip done!')
10})
11