Installations
npm install @uscreentv/uppy-manager
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
16.13.0
NPM Version
8.5.5
Score
62.2
Supply Chain
97
Quality
80.5
Maintenance
100
Vulnerability
87.3
License
Releases
Unable to fetch releases
Download Statistics
Total Downloads
46,281
Last Day
4
Last Week
67
Last Month
270
Last Year
3,097
Bundle Size
182.86 kB
Minified
56.23 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0-rc.22
Package Id
@uscreentv/uppy-manager@1.0.0-rc.22
Unpacked Size
207.07 kB
Size
65.28 kB
File Count
7
NPM Version
8.5.5
Node Version
16.13.0
Total Downloads
Cumulative downloads
Total Downloads
46,281
Last day
-91.8%
4
Compared to previous day
Last week
-37.4%
67
Compared to previous week
Last month
88.8%
270
Compared to previous month
Last year
-16.1%
3,097
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
11
Dev Dependencies
53
Uscreen Uppy managers
Small and stylish uploaders for images and files based on
uppy
.
Installation
Do it with npm
or with your favorite packages manager:
1$ npm i @uscreentv/uppy-manager
You should also install @uppy/core@^17.0.0
, @uppy/aws-s3@^1.7.0
and have configured
@uppy/companion
service.
ImageManager
This plugin includes interface for images uploading.
Usage
⚠️ restrictions.maxNumberOfFiles
in Uppy
options should be equal to 1
, because ImageManager
can process only one image.
Example:
1import { ImageManager } from '@uscreentv/uppy-manager' 2 3const uppy = new Uppy({ 4 meta: { 5 path: '/', 6 }, 7 restrictions: { 8 maxNumberOfFiles: 1, 9 }, 10}) 11 .use(AwsS3, { 12 companionUrl: 'https://foo.bar', 13 }) 14 .use(ImageManager) 15 16uppy.on('complete', ({ successful, failed }) => { 17 // handle uploaded files here 18})
Options
title: string
– uploader's frame titleimageSize: { width: number, height: number }
– aspect ratio dimensions. Use{ width: 1, height: 1 }
for square cropping shape, or{ width: 16, height: 9 }
for16:9
.target: HTMLElement
– manager's mounting nodeinline: boolean
- render manager directly intarget
node instead of modal windowreactive: boolean
– uploads files right after selection. ⚠️ Works only withinline
mode.
FilesManager
Example:
1import { ImageManager } from '@uscreentv/uppy-manager' 2 3const uppy = new Uppy({ 4 meta: { 5 path: '/', 6 }, 7 restrictions: { 8 allowedFileTypes: ['image/*', 'text/*'], 9 allowMultipleUploads: maxFiles > 1, 10 maxFileSize: 3600000, 11 maxNumberOfFiles: 10, 12 }, 13}) 14 .use(AwsS3, { 15 companionUrl: 'https://foo.bar', 16 }) 17 .use(FilesManager, { 18 inline: false, 19 }) 20 21uppy.on('complete', ({ successful, failed }) => { 22 // handle uploaded files here 23})
Options
title: string
– uploader's frame titletarget: HTMLElement
– manager's mounting nodeinline: boolean
- render manager directly intarget
node instead of modal window
License
No vulnerabilities found.
No security vulnerabilities found.