Go to file
Andrey Ponomarenko 4537570520 Merge remote-tracking branch 'origin/master' 2020-09-25 11:52:31 +03:00
.github/workflows build: fix build action 2020-09-25 10:11:44 +03:00
src fix: fix types and callbacks 2020-09-25 11:17:57 +03:00
.eslintignore initial commit 2020-09-24 09:33:04 +03:00
.eslintrc feat: create upload functions 2020-09-24 14:18:42 +03:00
.gitignore initial commit 2020-09-24 09:33:04 +03:00
.releaserc.json build: fix .releaserc.json 2020-09-25 09:49:35 +03:00
CHANGELOG.md chore(release): 1.0.6 [skip ci] 2020-09-25 08:41:05 +00:00
commitlint.config.js initial commit 2020-09-24 09:31:27 +03:00
package-lock.json chore(release): 1.0.1 [skip ci] 2020-09-25 06:50:16 +00:00
package.json fix: include types in package.json 2020-09-25 11:40:31 +03:00
readme.md fix: create readme.md 2020-09-25 11:52:24 +03:00
tsconfig.json fix: add types in export 2020-09-25 10:42:56 +03:00
webpack.config.js build: build with tsc 2020-09-24 15:23:44 +03:00
yarn.lock build: npm publish config 2020-09-25 08:44:07 +03:00

readme.md

diawi-nodejs-uploader

A NodeJS tool for Diawi integration written with Typescript

Installation

$ yarn add diawi-nodejs-uploader
=== or ===
$ npm install diawi-nodejs-uploader

Usage

Programmatic

All options exept token and file are optional.

import { upload } from 'diawi-nodejs-uploader';

await upload({
        file,
        token,
    }, {
        onStatusProgress: console.log,
        onUploadProgress: console.log,
    })

CLI

// in development