dorian-chunked-file-uploader-ts
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

Dorian Chunked File Uploader TS

Javascript multi engine chunked uploader

Implemented engine

  • Google Cloud Storage: DONE
  • Amazon Aws S3: TODO
  • Miniio: TODO
  • Dryrun: TODO

Usage

const presignedLink = "https://storage.googleapis.com/mybucket/my-path/myFile.txt"

const callbacks :ProgressCallbacks =  {
    onStart: (fileName:string,serivceId?:string):void => {};
    onProgress: (fileName:string,chunk:Chunk,serivceId?:string):void => {};
    onComplete: (fileName:string,serivceId?:string):void => {};
}

const options : UploadCongiguration = {file};
    
const engine = Factory.create(EngineType.GCS, options,callbacks);

await engine.start(presignedLink);

Init, compile & local install

yarn install
yarn test
yarn build

# Install to local npm repo
yarn link

Import from local to your project

yarn link dorian-chunked-file-uploader-ts

Use latest version

yarn add dorian-chunked-file-uploader-ts

Package Sidebar

Install

npm i dorian-chunked-file-uploader-ts

Weekly Downloads

1

Version

1.3.3

License

ISC

Unpacked Size

83.4 kB

Total Files

8

Last publish

Collaborators

  • mikidg1984