{"id":18483289,"url":"https://github.com/cloudcmd/node-omnes","last_synced_at":"2026-04-30T14:33:14.080Z","repository":{"id":57314313,"uuid":"80204058","full_name":"cloudcmd/node-omnes","owner":"cloudcmd","description":"extract zip, gz, tar, tar.gz, tgz archives middleware. better use https://github.com/cloudcmd/node-fileop","archived":false,"fork":false,"pushed_at":"2018-05-02T11:43:32.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-25T14:34:06.804Z","etag":null,"topics":["cloudcmd","gzip","javascript","middleware","nodejs","tar","zip"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudcmd.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2017-01-27T12:01:14.000Z","updated_at":"2019-10-16T10:41:29.000Z","dependencies_parsed_at":"2022-09-20T23:21:48.093Z","dependency_job_id":null,"html_url":"https://github.com/cloudcmd/node-omnes","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fnode-omnes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fnode-omnes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fnode-omnes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fnode-omnes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudcmd","download_url":"https://codeload.github.com/cloudcmd/node-omnes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239200659,"owners_count":19599042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cloudcmd","gzip","javascript","middleware","nodejs","tar","zip"],"created_at":"2024-11-06T12:35:11.240Z","updated_at":"2026-04-30T14:33:09.034Z","avatar_url":"https://github.com/cloudcmd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Omnes [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL]\n\nExtract `zip`, `tar`, `gz`, `tar.gz`, `tgz` archives middleware based on [socket.io](http://socket.io \"Socket.io\") and [inly](https://github.com/coderaiser/node-inly \"Inly\").\n\n## Install\n\n```\nnpm i omnes --save\n```\n\n## Client\n\nCould be loaded from url `/omnes/omnes.js`.\n\n```js\nconst prefix = '/omnes';\n\nomnes(prefix, function(packer) {\n    const from = '/';\n    const to = '/tmp';\n    const names = [\n        'bin'\n    ];\n    \n    const progress = (value) =\u003e {\n        console.log('progress:', value);\n    };\n    \n    const end = () =\u003e {\n        console.log('end');\n        packer.removeListener('progress', progress);\n        packer.removeListener('end', end);\n    };\n    \n    packer.pack(from, to, names);\n    \n    packer.on('progress', progress);\n    packer.on('end', end);\n    packer.on('error', (error) =\u003e {\n        console.error(error.message);\n    });\n});\n\n```\n\n## Server\n\n```js\nconst omnes = require('omnes');\nconst http = require('http');\nconst express = require('express');\nconst io = require('socket.io');\nconst app = express();\nconst server = http.createServer(app);\nconst socket = io.listen(server);\n\nserver.listen(1337);\n\napp.use(omnes({\n    authCheck: (socket, success) =\u003e {\n        success();\n    }\n});\n\nomnes.listen(socket, {\n    prefix: '/omnes',   /* default              */\n    root: '/',          /* string or function   */\n});\n```\n\n## Environments\n\nIn old `node.js` environments that not fully supports `es2015`, `omnes` could be used with:\n\n```js\nvar omnes = require('omnes/legacy');\n```\n\n## Related\n\n- [Ishtar](https://github.com/coderaiser/node-ishtar \"Ishtar\") - Pack and extract .tar.gz archives middleware.\n- [Salam](https://github.com/coderaiser/node-salam \"Salam\") Pack and extract `zip` archives middleware.\n\n## License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/omnes.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]:                   https://npmjs.org/package/omnes \"npm\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n\n[BuildStatusURL]:           https://travis-ci.org/cloudcmd/node-omnes  \"Build Status\"\n[BuildStatusIMGURL]:        https://img.shields.io/travis/cloudcmd/node-omnes/master.svg?style=flat\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fnode-omnes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudcmd%2Fnode-omnes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fnode-omnes/lists"}