|
@@ -243,7 +243,7 @@ const zipped = fflate.zipSync({
|
|
'dir1': {
|
|
'dir1': {
|
|
'nested': {
|
|
'nested': {
|
|
// You can use Unicode in filenames
|
|
// You can use Unicode in filenames
|
|
- '你好.txt': std('Hey there!')
|
|
|
|
|
|
+ '你好.txt': strToU8('Hey there!')
|
|
},
|
|
},
|
|
// You can also manually write out a directory path
|
|
// You can also manually write out a directory path
|
|
'other/tmp.txt': new Uint8Array([97, 98, 99, 100])
|
|
'other/tmp.txt': new Uint8Array([97, 98, 99, 100])
|
|
@@ -275,7 +275,7 @@ const zipped = fflate.zipSync({
|
|
// |-> other
|
|
// |-> other
|
|
// | |-> tmp.txt
|
|
// | |-> tmp.txt
|
|
// myImageData.bmp
|
|
// myImageData.bmp
|
|
-// superTinyFile.bin
|
|
|
|
|
|
+// superTinyFile.png
|
|
|
|
|
|
// When decompressing, folders are not nested; all filepaths are fully
|
|
// When decompressing, folders are not nested; all filepaths are fully
|
|
// written out in the keys. For example, the return value may be:
|
|
// written out in the keys. For example, the return value may be:
|