d09e2a4e84 | ||
---|---|---|
.github/workflows | ||
src | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.releaserc.json | ||
CHANGELOG.md | ||
commitlint.config.js | ||
package-lock.json | ||
package.json | ||
readme.md | ||
tsconfig.json | ||
webpack.config.js | ||
yarn.lock |
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 except token and file are optional.
import { upload } from 'diawi-nodejs-uploader';
await upload({
file,
token,
}, {
onStatusProgress: console.log,
onUploadProgress: console.log,
})
CLI
// in development