Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

open gz file node

'use strict'

const gunzip = require('gunzip-file')

// 'sitemap.xml.gz' - source file
// 'sitemap.xml'    - destination file
// () => { ... }    - notification callback
gunzip('sitemap.xml.gz', 'sitemap.xml', () => {
  console.log('gunzip done!')
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #open #gz #file #node
ADD COMMENT
Topic
Name
1+4 =