Giter VIP home page Giter VIP logo

anzip's Introduction

Hi there ! ๐Ÿ‘‹

Welcome to my Github account ๐Ÿ˜‰

๐Ÿ”ญ I am currently involved in several personal open-source projects. Where I experiment, learn and push back the limits:

  • VPiper : Nextgen cross-platform solution to transform, transcode and stream medias in realtime using HA and ML.
  • Ziiircom : Create the most advanced webchat toolkit to integrate in your app/web
  • material-ui-color : How to do top-notch Material-ui components with minimal dependencies and ressources
  • din-o : Deno + Webrtc solution for webconf, at an early stage.
  • And more

Also I work for clients on cutting-edge mobile/web apps involving video-processing and AI. As a developer, as a lead or as a CTO, I bring my long experience in coding using different languages (Javascript, Java, Swift / Objective-C, C/C++, PHP, Python) and managing projects and people as efficiently as possible.

๐ŸŒฑ Iโ€™m currently learning Rust/WebGPU/WASM and some new AI concepts.

๐Ÿ‘ฏ Iโ€™m open to collaboration on cool projects involving AI, video and or 3D.

๐Ÿ’ฌ Ask me about any tricky problems in your React, React-native, Android or iOs app or backend. I put misfit projects on the right track.

๐Ÿ“ซ How to reach me: [email protected] / My personal website / @mikbry / Linkedin

๐Ÿ˜„ Pronunciation of my (last)name:

  • Mik as Mik Jagger
  • Bry as Bree Van de Kamp

โšก Fun fact:

Coding cat

anzip's People

Contributors

dependabot[bot] avatar mikbry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anzip's Issues

bug: Uncaught promise error while using entryHandler

Hi there, a little bug on your lib :

Description

Throwing an error in entryHandler result on an UnhandledPromiseRejectionWarning + impossibility to catch it

Expected behaviour

Should forward error normally

Actual behaviour

Swallow error

Steps to reproduce

const entryHandler = async entry => {
        try {
            // unziping file to location
            await entry.saveTo(outputPath);

            return false;
        } catch (err) {
            // HERE => UnhandledPromiseRejectionWarning:
            throw new Error(`Error while unziping file "${entry.name}" : ${err}`);
        }
    };

try {
        await anzip(file, {
            pattern: /.*/,
            entryHandler,
            disableSave: true,
            disableOutput: true
        });
    } catch (err) {
        // HERE => should be able to catch the entryHandler error here
        throw new Error(`Error handling "${file}" : ${err}`);
    }

Environnement

Node version 14.7.0
Windows 10

Thanks :)

feat : ZipEntry getContent

Description

As we have a 'saveTo' function we need a 'getContent' function to retreive raw Buffer content from an entryHandler function

Expected behaviour

Simplify getting content in entryHandler

Actual behaviour

Not so easy to get content in entryHandler

bug: test failed 'should extract a simple zip file in content without writing file'

Description

A test failed.

Expected behaviour

It should work.

Actual behaviour

1) anzip
       should extract a simple zip file in content without writing file:
     TypeError: Cannot read property 'toString' of undefined
      at Context.<anonymous> (test/index.test.js:67:36)

Steps to reproduce

yarn test

Environnement

Node v14.6.0
Yarn v1.22.4
OS Mac

chore: build failed due to Rollup new version

Description

$ yarn build
Failed
Entry module "src/index.js" is implicitly using "default"

Expected behaviour

Should build

Actual behaviour

Return:

src/index.js โ†’ dist/index.js, dist/index.mjs...
(!) Entry module "src/index.js" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/index.js" to use named exports only.
https://rollupjs.org/guide/en/#outputexports
src/index.js
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
util (imported by src/index.js, src/ZipEntry.js)

bug: anzip gets stuck with windows 10 zip archives

Description

Testing a Zip file which contains exactly one folder. In this folder are several files.
Different Versions of the Archive have been created:
Version 1: with windows 10 native zip functionality
Version 2: with 7zip on windows
Version 3: with ubuntu native zip functionality

Anzip call as follows:
const output = await anzip(file.path, {
outputPath: unzipPath,
outputContent: true,
disableSave: false,
flattenPath: false,
pattern: /(^(?!.))(.+(.xlsx|.svg))$/i,
});

Expected behaviour

Unzip archive successfully for all 3 Versions.

Actual behaviour

Versions 2 and 3 work without any issue.
Version 1 hangs at first call of "await entry.proceed(opts, output);" in anzip method.

Behavior changes when outputContent is not set. In this case nothing gets stuck. But still no directory is created.

Steps to reproduce

Create a Zip file as in description. Use similar paremeters according to test.

Probable Cause

Windows native zip doesn't set the directory attributes correct.
Usually the directory attributes would be: "D drwxr-xr-x"
In the windows made archive it is: "" ... so nothing at all.

saveTo remove flags

When using, several times same extraction on an archive, it appends to existing files instead of overwrite.

TODO
Remove flags parameters line 89 of ZipEntry

saveTo use global flattenPath

When using saveTo in entryHandler, it write to a not flatten directory structure, even if flattenPath is set to true.
Should write to outputPath instead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.