large-file-shard

1.0.3 • Public • Published

version

node v16.20.0

Usage

npm i large-file-shard

Example

function fileChange(e) {
  const file = e.files[0];
  const fileShard = new FileShard(file);
  fileShard.init(file, 2 * 1024 * 1024);
  console.log(fileShard.getAllChunks());
  fileShard.getAllChunkHash().then((res) => {
    console.log(res);
  });
  fileShard.getFileHash().then((res) => {
    console.log(res);
  });
}

Package Sidebar

Install

npm i large-file-shard

Weekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

20.3 kB

Total Files

3

Last publish

Collaborators

  • smile0125