samsam2310 / zbar.wasm

A wasm build of C/C++ ZBar barcode scanning library.
GNU Lesser General Public License v2.1
222 stars 30 forks source link

Add Deno support #16

Closed samsam2310 closed 2 years ago

samsam2310 commented 2 years ago

Deno require some different syntax from typescript. Add deno files as *.deno.ts to seperate them from other ts files.

codecov-commenter commented 2 years ago

Codecov Report

Merging #16 (4ebbc46) into master (93bd903) will decrease coverage by 4.15%. The diff coverage is 82.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
- Coverage   99.10%   94.94%   -4.16%     
==========================================
  Files           9       17       +8     
  Lines         224      297      +73     
  Branches       15       17       +2     
==========================================
+ Hits          222      282      +60     
- Misses          2       15      +13     
Impacted Files Coverage Δ
src/module.ts 96.55% <ø> (ø)
scripts/deno-import.deno.ts 43.47% <43.47%> (ø)
scripts/deno-import.test.deno.ts 100.00% <100.00%> (ø)
src/deps/asserts.deno.ts 100.00% <100.00%> (ø)
src/deps/base64.deno.ts 100.00% <100.00%> (ø)
src/deps/canvas.deno.ts 100.00% <100.00%> (ø)
src/deps/expect.deno.ts 100.00% <100.00%> (ø)
src/deps/path.deno.ts 100.00% <100.00%> (ø)
src/test/utils.deno.ts 100.00% <100.00%> (ø)
src/test/utils.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 93bd903...4ebbc46. Read the comment docs.

jcs224 commented 2 years ago

This is amazing. Thanks for putting in the time to do this! Just tried it and it works perfectly!