0.0.8-b • Published 3 years ago

@modfy/core v0.0.8-b

Weekly downloads
-
License
SEE LICENSE IN Mo...
Repository
-
Last release
3 years ago

@modfy/core

This is the core package for the modfy api library

Full documenation docs.modfy.video

Currently invite only, reach out to hello@modfy.video

Install

yarn add @modfy/core

# Using Npm

npm install @modfy/core

Auth

You can get your tokens at https://api.modfy.video/dashboard

import Modfy from '@modfy/core'

const modfy = new Modfy({
  token: '',
  secretToken: 'sk*test*',
  clientSide: false
  // Optional value if you plan to use client side rendering. (Defaults to false)
})

Operations

General Operations

const processedFile = modfy.operations(inputFiles, type, ...args)

Compress

const compressedFiles = modfy.compress(
  ['./input.mp4'],
  /* Files
    - Three types of files are accepted
    - 1. HTML File Object, you can pass in an File Object directly in your browser
    - 2. Object containing {name : string, buffer : Buffer, mineType? : string}
    - 3. String of File Path (Only supported in Node)
    */

  'client', // Type of processing, can choose from client or server
  10 // Compression value
)
// Function returns a Promise<Uint8Array>

Reference

https://docs.modfy.video/reference/index.html

0.0.8-b

3 years ago

0.0.8-a

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5-a

3 years ago

0.0.4-b

3 years ago

0.0.4-a

3 years ago

0.0.3-c

3 years ago

0.0.3-b

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.1.1

3 years ago

0.1.2

3 years ago