Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the library zip folder ? #19

Open
TeddyAlbina opened this issue May 13, 2023 · 0 comments
Open

Can the library zip folder ? #19

TeddyAlbina opened this issue May 13, 2023 · 0 comments

Comments

@TeddyAlbina
Copy link

We are currently using fflate, and because of safari we have to check another solution. In fflate you can zip folders by providing a code like that .

        zipData["FOLDER_NAME"] = {
            "session.json": [fflate.strToU8(`{
                "gender": "${audio.gender}", 
                "numberOfStimuli": ${numberOfStimulus},
                "stimulus_name": "${audio.name}", 
                "stimulus": ${audio.stimuliNumber},
                "session": "${session}", 
                "final": false,
                "stimulus_uri": "${audio.audioUri}",
                "stimulus_version": "${audio.audioVersion}",
                "sampleRate": ${audio.sampleRate} }`), { level: 0 }],
            "ambiant.wav": [new Uint8Array(ambiantSound), { level: 9 }],
            "recording.wav": [new Uint8Array(audio.audio), { level: 9 }]
        };

Is that possible with wasm-flate ?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant