profile
viewpoint
zfx fuxingZhang deno,node,swift,flutter,etc.

deno-library/progress 12

ProgressBar in terminal for deno

fuxingZhang/blog 9

Personal blog build on node.js, vue.js and mysql

fuxingZhang/egg-rabbitmq 3

egg rabbitmq plugin

fuxingZhang/bugu-web 0

BuguLink backend project (Koa2 + MySQL + Redis).

fuxingZhang/child_process.spawn 0

Use child_process.spawn to process stream data passed by child processes

fuxingZhang/copydir 0

Copy files from one directory to another by nodejs

fuxingZhang/cordova 0

cordova apps

fuxingZhang/date 0

date format

fuxingZhang/deno 0

A secure JavaScript and TypeScript runtime

created tagdeno-library/compress

tagv0.3.3

compress and uncompress for Deno

created time in 5 days

release deno-library/compress

v0.3.3

released time in 5 days

push eventdeno-library/compress

fuxingZhang

commit sha 18fb60fed8425044b75e08d2db7b1c73a80fd298

update tar

view details

fuxingZhang

commit sha fa25ce59d9821ef7d6ff608477f1f4b8ca225ef4

v0.3.3

view details

push time in 5 days

delete branch fuxingZhang/deno

delete branch : patch-1

delete time in 5 days

push eventfuxingZhang/deno

zfx

commit sha 0d8682b234c4c1241507f5d0ad0302a2ba3b3172

fix a bug meta.type is a numeric string ```ts meta.type = FileTypes[parseInt(meta.type!)] ?? meta.type; // meta.type = FileTypes[parseInt("0")] ?? "0"; ```

view details

push time in 5 days

Pull request review commentdenoland/deno

fix directory type

 function pad(num: number, bytes: number, base?: number): string {   return "000000000000".substr(numString.length + 12 - bytes) + numString; } -const types: { [key: string]: string } = {-  "": "file",-  "0": "file",-  "1": "link",-  "2": "symlink",-  "3": "character-device",-  "4": "block-device",-  "5": "directory",-};+enum Types {+  "file" = 0,+  "link" = 1,+  "symlink" = 2,+  "character-device" = 3,+  "block-device" = 4,+  "directory" = 5,+  "fifo" = 6,+  "contiguous-file" = 7,+}

in method #getMetadata of Class Untar, convert a numeric string to string, such as "0" => "file"

// before
meta.type = types[meta.type as string] || meta.type;
// now
meta.type =
  FileTypes[meta.type as keyof typeof FileTypes] as unknown as string ??
    meta.type;

if the value is string, i get an error

enum FileTypes {
  "file" = "0",
  "link" = 1,
}
console.log(FileTypes.file);
// ok
console.log(FileTypes[1]);
// throw an error: Element implicitly has an 'any' type because index expression is not of type 'number'.ts(7015)
console.log(FileTypes["0"]);
fuxingZhang

comment created time in 5 days

push eventfuxingZhang/deno

zfx

commit sha 6bf33f1b8953e3ec26f6ff0666bce296332b212b

Update tar.ts

view details

push time in 5 days

push eventfuxingZhang/deno

zfx

commit sha c929dc47a8f28dd2cad85e1da84b4796edb75ea5

use FileTypes instead of Types

view details

push time in 5 days

Pull request review commentdenoland/deno

fix directory type

 export class Tar {       fileSize: pad(fileSize, 11),       mtime: pad(mtime, 11),       checksum: "        ",-      type: "0", // just a file+      type: info?.isDirectory ?? opts.type === "directory" ? "5" : "0",

I have updated the code, but I am not sure if it is appropriate.

I referenced some websites, and I add "fifo" and "contiguous-file" into Types

https://github.com/mafintosh/tar-stream http://www.gnu.org/software/tar/manual/html_node/Standard.html

fuxingZhang

comment created time in 6 days

push eventfuxingZhang/deno

zfx

commit sha 1a10bb31382ff7162162dbb593db7ca2f81da8f0

Update tar.ts

view details

push time in 6 days

push eventfuxingZhang/deno

zfx

commit sha 36d62d9f2f3ad972bd657402f31e2192ea3b0bad

Update tar_test.ts

view details

push time in 7 days

push eventfuxingZhang/deno

zfx

commit sha 743108aaa1998bc9ec0b76b5bf1b41839f76f10a

Update tar.ts

view details

push time in 7 days

push eventfuxingZhang/deno

zfx

commit sha fbc9d11b9d87a3d962fad97f4b3aabe73beb30d7

Update tar_test.ts

view details

push time in 7 days

push eventfuxingZhang/deno

zfx

commit sha aff81dbc89bbd1269ccc9680f3fd3327b6209ff8

format tar_test.ts

view details

push time in 7 days

push eventfuxingZhang/deno

zfx

commit sha d2ef4495001ffcdf5e9d9012b21f42bea4b004c8

fix test

view details

push time in 7 days

push eventfuxingZhang/deno

zfx

commit sha 527cacc252a6c7d9be0d3e864db5a6013d8c0e6b

Update tar_test.ts

view details

push time in 7 days

push eventfuxingZhang/deno

zfx

commit sha b75a9d82a20300989bfd00800a871d80e090ad65

modify the judgment rule

view details

push time in 7 days

PR opened denoland/deno

fix directory type

<!-- Before submitting a PR, please read https://github.com/denoland/deno/blob/master/docs/contributing.md -->

I use tar.append to add a folder and I get incorrect entry.type.

image

+13 -1

0 comment

2 changed files

pr created time in 8 days

push eventfuxingZhang/deno

zfx

commit sha 61be69dcaf9a40c48fc78e653db7985da1e20d4d

add test

view details

push time in 8 days

created tagdeno-library/compress

tagv0.3.2

compress and uncompress for Deno

created time in 8 days

release deno-library/compress

v0.3.2

released time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 52a0e5baefe4f8773353398a2546346a946eaf80

delete test file

view details

fuxingZhang

commit sha 80f989de2f08776b1b193887e1a31d18d7cce2e1

v0.3.2

view details

push time in 8 days

push eventfuxingZhang/deno

zfx

commit sha 8d9c33617d5fcde6d2d22bd84015da7ce116fff6

fix directory type

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha e3fdd64ac85f70e8b2cd1c68452b088267307bb7

update tar

view details

push time in 8 days

fork fuxingZhang/deno

A secure JavaScript and TypeScript runtime

https://deno.land

fork in 8 days

created tagdeno-library/compress

tagv0.3.1

compress and uncompress for Deno

created time in 8 days

release deno-library/compress

v0.3.1

released time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 10f7d742fac86dbb7e310a49e1deb289a146267e

v0.3.1

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 50702738b8fca70fa61c334e9721b9456128299c

update tar and tgz

view details

push time in 8 days

created tagdeno-library/compress

tagv0.3.0

compress and uncompress for Deno

created time in 8 days

release deno-library/compress

v0.3.0

released time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 945f18747004459895083be64fae4b05541cfd82

update version

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 89eb24e49afb1ba396a8403deb76e7d6a904ab87

update readme for tgz

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 3b9a774440b698bb513e5f428f7e30f960cbf34c

add tgz

view details

push time in 8 days

created tagdeno-library/crc32

tagv0.2.0

created time in 8 days

release deno-library/crc32

v0.2.0

released time in 8 days

created tagdeno-library/compress

tagv0.2.2

compress and uncompress for Deno

created time in 8 days

release deno-library/compress

v0.2.2

released time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha d8dff2753181bc4f820bf5195263bc5975ccd829

update

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 25f9e152eef23942066941bd83b8c7e859fc2322

update readme

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha e00a9e5e2c3b8ba029bb8ee226d2b29408119642

update readme

view details

push time in 8 days

created tagdeno-library/compress

tagv0.2.1

compress and uncompress for Deno

created time in 8 days

release deno-library/compress

v0.2.1

released time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 21f013cd203afb8aef33f22029c80ca3c908b378

update version

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 2f63b49c342694d7391320b4cc69d2bce729104c

update zlib

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 66185e77614d818f68dbc194d53840a21476f32c

update gzip

view details

push time in 8 days

created tagdeno-library/compress

tagv0.2.0

compress and uncompress for Deno

created time in 8 days

release deno-library/compress

v0.2.0

released time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 175662489771a2f638da0814e3551b7b5ec4c861

update readme

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 24b08b878c35da49882800fc29c99dae9a20d1f7

update version

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 53ab3a938add4b67879cd4e91c83b46ef0ec5a48

update deflate doc

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 32287038f562474b37875cbab98f9177a8c2f207

export default zlib.deflate

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha f3414c8377afd2cab5e89240cd1cf7f911e8c88e

update readme for gzip

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 479cf1f03b83fd237c48b00c164b2230fb336a15

export default zlib.gzip and gunzip

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 8a3aba8237bec9aa8880835b21c84622df6ad2c6

use zlib.gzip and gunzip

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha fa888b8634fef85100db46129c5c1df43a94f700

complete GzipStream

view details

push time in 8 days

push eventdeno-library/compress

fuxingZhang

commit sha 13f3b2fc698bda53b3321242a22a3a0b907e974c

update

view details

push time in 9 days

push eventdeno-library/compress

fuxingZhang

commit sha 9771f6743270a1cfb2bc721335d83e0035e4a254

update deflate

view details

push time in 9 days

push eventdeno-library/compress

fuxingZhang

commit sha a2cb0438d2ab723facfc28e04bdbf8951b6b9701

update deflate

view details

push time in 9 days

release deno-library/compress

v0.1.2

released time in 9 days

created tagdeno-library/compress

tagv0.1.2

compress and uncompress for Deno

created time in 9 days

push eventdeno-library/compress

fuxingZhang

commit sha 2d9656a0279e87ef30bb2d7c4f86106c1dccb584

update version

view details

push time in 9 days

push eventdeno-library/compress

fuxingZhang

commit sha 6acf90fa440823a6185f998d02692d4a67efb005

change url to deno.land

view details

push time in 9 days

push eventdeno-library/crc32

fuxingZhang

commit sha df3f86cbf176ed9e989d098dcc2153989b80298d

change url to deno.land

view details

push time in 9 days

issue closedfuxingZhang/egg-mysql

Invalid or unexpected token

_@node-mysql_mysql@0.8.0@@node-mysql/mysql/lib/pool.js:8 #pool; ^ SyntaxError: Invalid or unexpected token at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module.load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/Users/kouguopeng/Desktop/2020622/ptgnbackstage/node_modules/@node-mysql_mysql@0.8.0@@node-mysql/mysql/index.js:3:14) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

closed time in 10 days

kouguopeng

delete branch fuxingZhang/deno_website2

delete branch : patch-2

delete time in 10 days

push eventdeno-library/compress

fuxingZhang

commit sha 28b3eea073a215688f200cffaafe928cee8dcbb6

update import version

view details

push time in 10 days

created tagdeno-library/compress

tagv0.1.1

compress and uncompress for Deno

created time in 10 days

release deno-library/compress

v0.1.1

released time in 10 days

push eventdeno-library/compress

fuxingZhang

commit sha 2cce81bab9fa516ae3c4900de89e7ca2a076071c

move crc32 to deno-library

view details

push time in 10 days

PR opened denoland/deno_website2

add crc32 ro database.json
+7 -0

0 comment

1 changed file

pr created time in 10 days

push eventfuxingZhang/deno_website2

zfx

commit sha 5a5028883104deed01c59ff4f47ee2b120debf47

add crc32 ro database.json

view details

push time in 10 days

created tagdeno-library/crc32

tagv0.1.0

created time in 10 days

release deno-library/crc32

v0.1.0

released time in 10 days

push eventdeno-library/crc32

fuxingZhang

commit sha 61a519d9ad2689b8634d39ea3fc844bdf65eadc7

update url

view details

push time in 10 days

push eventdeno-library/crc32

fuxingZhang

commit sha a1145233abb47799833a74dac425a5b27b154e65

add code

view details

push time in 10 days

create barnchdeno-library/crc32

branch : master

created branch time in 10 days

created repositorydeno-library/crc32

created time in 10 days

push eventdeno-library/compress

zfx

commit sha 63cd2cafe629c3b655c145ba253f269813e6fa72

Update README.md

view details

push time in 11 days

push eventdeno-library/compress

zfx

commit sha 63f6cd2fb32d647c583f48c3ffd51af8add37e22

Update README.md

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha 7b2467ddb1e246455f26f48ddd574c63ad5d248f

update readme

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha a63b8a42e9ee872d984d364cf4d877ad4264552b

update readme

view details

push time in 11 days

created tagdeno-library/compress

tagv0.1.0

compress and uncompress for Deno

created time in 11 days

release deno-library/compress

v0.1.0

released time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha c09f3d02a7d8cd54ed9c9bba3846c25ae6165dd2

update version

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha 1100d46baa93e3b26775d963bdc82a4295d67507

update gzip

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha ed53e4c061957af8671561500f899c2e0ecf3fbe

add gzip file

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha 08c807076661ac3d7c809778db5a3b1f647a7e04

update gzip

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha adb5795f2f4c4c4a09b12792b479856571ccbf47

add progress example

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha a032c817bb348eab76f00557b4220d4a04223f7b

GzipStream.compress is ok

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha ca91cf2cde8ae75b92b219ccf3eb3cf5d02aa768

update gzip

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha 4b4ff70df8a4a8bc05b1cca4439d205acdb71626

update

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha 9898a684282383fa2616f698af4e23c948329649

add support for gzip, gunzip

view details

push time in 11 days

push eventdeno-library/compress

fuxingZhang

commit sha ecf8f612eca890c16553227fbf7b2aff96511087

Add support for deflate

view details

push time in 12 days

push eventdeno-library/logger

fuxingZhang

commit sha 9aaad592570b50768ae8b60ef0eb7de5678f8986

add deps.ts

view details

push time in 13 days

push eventdeno-library/compress

Bidek

commit sha 91f4c706897fee8d578d95c8ca13c75c6860ff69

Bumping lib version for Deno 1.2

view details

zfx

commit sha b81c52cfaa115a02152732178b4fb612e6fc75f6

Merge pull request #1 from Bidek56/master Bumping lib version for Deno 1.2

view details

push time in 14 days

PR merged deno-library/compress

Bumping lib version for Deno 1.2

Deno 1.2 has breaking changes hence it needs 0.61 version of libs

+4 -4

1 comment

1 changed file

Bidek56

pr closed time in 14 days

pull request commentdeno-library/compress

Bumping lib version for Deno 1.2

thanks

Bidek56

comment created time in 14 days

issue commentfuxingZhang/egg-mysql

Invalid or unexpected token

example

kouguopeng

comment created time in 16 days

push eventfuxingZhang/date

zfx

commit sha 061c93ba104309a79c5eb108ff5c379ad1c15b48

Delete package-lock.json

view details

push time in 16 days

more