{"id":19380014,"url":"https://github.com/graphistry/node-pigz","last_synced_at":"2026-06-08T21:32:59.459Z","repository":{"id":22607334,"uuid":"25949523","full_name":"graphistry/node-pigz","owner":"graphistry","description":"Nodejs bindings to the pigz compression utility","archived":false,"fork":false,"pushed_at":"2019-09-27T21:42:42.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-24T16:50:29.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphistry.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T01:36:55.000Z","updated_at":"2020-07-30T12:26:51.000Z","dependencies_parsed_at":"2022-08-21T09:30:27.646Z","dependency_job_id":null,"html_url":"https://github.com/graphistry/node-pigz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graphistry/node-pigz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphistry%2Fnode-pigz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphistry%2Fnode-pigz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphistry%2Fnode-pigz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphistry%2Fnode-pigz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphistry","download_url":"https://codeload.github.com/graphistry/node-pigz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphistry%2Fnode-pigz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34082130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:12:03.568Z","updated_at":"2026-06-08T21:32:59.440Z","avatar_url":"https://github.com/graphistry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== node-pigz by Graphistry, Inc. ===\n\n\nWhat is it?\n-----------\n\nNode-pigz wraps pigz for multicore compression. Pigz \"is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data.\" It is a great way to reduce latency, or, for the same latency, increase compression.\n\nNode-pigz supports both JavaScript's ArrayBuffers (typed arrays) and Node's Buffer. The default wrapper takes Uint8Arrays and returns Buffers.\n\n\n\nThe Latest Version\n------------------\n\nSee github repo\n\n\n\nInstallation\n------------\n\nnode-pigz depends on pigz and node-gyp. It assumes pigz is at \"/usr/local/bin/pigz\".\n\n1. brew install pigz\n2. npm install -g node-gyp\n3. npm install\n\n\n\nLicensing\n---------\n\nSee file LICENSE\n\n\nContacts\n--------\n\nSee github repo\n\n\n\nExample\n-------\n\n    var compress = require('./compress.js');\n    \n    var inputArr = [];\n    for (var i = 0; i \u003c 1024 * 1024; i++) {\n        inputArr.push(i % 20);\n    }\n    \n    var inputTypedArr = new Uint32Array(inputArr);\n    var t0 = new Date().getTime();\n    compress.deflate(new Uint8Array(inputTypedArr.buffer), function (err, outputBuffer) {\n        if (err) {\n            return console.error('Compression error', err);\n        } else {\n            console.log(\n                'deflated:', (inputTypedArr.byteLength/(1024*1024)).toFixed(2), 'MB', \n                '--\u003e', (outputBuffer.length/(1024*1024)), 'MB');\n            console.log('(', (100 * outputBuffer.length/inputTypedArr.byteLength).toFixed(2), '%)');\n            console.log(new Date().getTime() - t0, 'ms');\n        }\n    });\n\n    \n    // Output:\n    // deflated: 4.00 MB --\u003e 0.027303695678710938 MB\n    // ( 0.68 %)\n    // 28 'ms'\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphistry%2Fnode-pigz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphistry%2Fnode-pigz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphistry%2Fnode-pigz/lists"}