mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Create zip.js
This commit is contained in:
parent
bd5e45a144
commit
47e272ccc0
1 changed files with 13 additions and 0 deletions
13
scripts/core/zip.js
Normal file
13
scripts/core/zip.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
const { gzip, ungzip } = require('node-gzip')
|
||||
|
||||
const zip = {}
|
||||
|
||||
zip.compress = async function (string) {
|
||||
return gzip(string)
|
||||
}
|
||||
|
||||
zip.decompress = async function (string) {
|
||||
return ungzip(string)
|
||||
}
|
||||
|
||||
module.exports = zip
|
Loading…
Add table
Add a link
Reference in a new issue