1.0.9 • Published 7 months ago

azota-file v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

azota-file

Đọc file azt loại scan offline

let binary: Uint8Array = readFileAsSync();
decodeScanOfflineFile(binary).then((file) => {
   let image = file.getWrappedImage(); // ảnh show ra
   let imageName = file.getWrappedImageExtension(); // đuôi file ảnh
   let data = file.scanOfflineData.scanResult; // nội dung scan được 
});

Đẩy project lên npm

  • Tạo tài khoản trên https://www.npmjs.com/
  • Tại terminal của project gõ lệnh: npm login
  • Sau khi login gõ lệnh npm publish

Unit test

  • Để chạy toàn bộ các file test, gõ lệnh: npm run test
  • Để chạy file test có tên abc.test.ts, gõ lệnh: npm run stest --name=abc
  • Nếu dùng các hàm goldie: Để tạo/cập nhật các file expected result từ các unit test của 1 file test abc.test.ts, gõ lệnh: npm run ctest --name=abc

  • Để viết unit test, tham khảo: https://dev.to/matteobruni/mocha-chai-with-typescript-37f

  • Để biết cách sử dụng goldie, tham khảo các file: tests/Success/Success.test.ts, tests/Fail/Fail.test.ts
1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

3 years ago

1.0.0

3 years ago