0.1.18 • Published 2 years ago

ncoded-storage-service v0.1.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Ncoded server resized-image-file library

Install

yarn add ncoded-storage-service

Usage

Create storage service and service for resized and upload files, call functions

import { AWSStorageService, ResizedAndUploadService } from 'ncoded-storage-service'

const storageService = new AWSStorageService({bucketName,bucketRegion,accessKeyId,secretAccessKey})
const resizedAndUploadService = new ResizedAndUploadService()

//call function for resize image and create different image formats - from input read stream
const resizeImagesFromStream = resizedAndUploadService.fileImageResizeFromReadStream(inputStream)
//call function for resize image and create different image formats - from input buffer
const resizedImagesFromBuffer = resizedAndUploadService.fileImageResizeFromBuffer(inputBuffer)

//call function for file upload from input read stream
const uploadedFile = resizedAndUploadService.fileUploadFromReadStream(inputStream,key,mimeType,storageService)
//call function for file upload from input buffer
const uploadedFile = resizedAndUploadService.fileUploadFromBuffer(inputBuffer,key,mimeType,storageService)
0.1.18

2 years ago

0.1.17

2 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago