node-mirai
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

node-mirai

Package for m1r.ai

Installation

pnpm add node-mirai

Example

import { upload } from 'node-mirai'

const { url } = await upload(
  './path/to/file.png', 
  { 
    headers: { 
      Random: 'test-image', 
      CustomHeader: 'test' 
    } 
  }
)

console.log(url)

Config

upload

file

Accept type File Blob string, can be stream of file or path to the file

options

Optional, mostly alias from node fetch() options with additional upload options

Readme

Keywords

Package Sidebar

Install

npm i node-mirai

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.1 kB

Total Files

19

Last publish

Collaborators

  • gusb3ll