GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cloudcmd/node-omnes: extract zip, gz, tar, tar.gz, tgz archives middleware. better use https://github.com/cloudcmd/node-fileop

BranchesTags
Open more actions menu

Latest commit

 

History

42 Commits
42 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
server
server
 
 
test
test
 
 
.babelrc
.babelrc
 
 
.client.eslintrc
.client.eslintrc
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.rollup.js
.rollup.js
 
 
.socket.io.rollup.js
.socket.io.rollup.js
 
 
.travis.yml
.travis.yml
 
 
ChangeLog
ChangeLog
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

Omnes License NPM version Build Status

Extract zip, tar, gz, tar.gz, tgz archives middleware based on socket.io and inly.

Install

npm i omnes --save

Client

Could be loaded from url /omnes/omnes.js.

const prefix = '/omnes';

omnes(prefix, function(packer) {
    const from = '/';
    const to = '/tmp';
    const names = [
        'bin'
    ];
    
    const progress = (value) => {
        console.log('progress:', value);
    };
    
    const end = () => {
        console.log('end');
        packer.removeListener('progress', progress);
        packer.removeListener('end', end);
    };
    
    packer.pack(from, to, names);
    
    packer.on('progress', progress);
    packer.on('end', end);
    packer.on('error', (error) => {
        console.error(error.message);
    });
});

Server

const omnes = require('omnes');
const http = require('http');
const express = require('express');
const io = require('socket.io');
const app = express();
const server = http.createServer(app);
const socket = io.listen(server);

server.listen(1337);

app.use(omnes({
    authCheck: (socket, success) => {
        success();
    }
});

omnes.listen(socket, {
    prefix: '/omnes',   /* default              */
    root: '/',          /* string or function   */
});

Environments

In old node.js environments that not fully supports es2015, omnes could be used with:

var omnes = require('omnes/legacy');

Related

  • Ishtar - Pack and extract .tar.gz archives middleware.
  • Salam Pack and extract zip archives middleware.

License

MIT

About

extract zip, gz, tar, tar.gz, tgz archives middleware. better use https://github.com/cloudcmd/node-fileop

Topics

cloudcmdgzipjavascriptmiddlewarenodejstarzip

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.