js-split-file
A library to split big file to small binary data for nodejs and browsers.
install
npm i js-split-file
usage
;// <script src="js-split-file/js-split-file.min.js"></script> // react-native:; ;; // for browser, from File or Blob to Uint8Array; for nodejs, from Buffer to Uint8Array;;
options
; // each piece's size <= 10000B
dependencies
- Uint8Array, or polyfill like
core-js
- for browser, it need
TextEncoder
andTextDecoder
, if the browsers don't support them, use polyfill liketext-encoding
change logs
// v2;; // v1;;