@sekiju/anonfiles-api
v1.0.2
Published
Unofficial API wrapper for anonfiles.com
Downloads
9
Readme
@sekiju/anonfiles-api
Unofficial API wrapper for anonfiles.com
Installation
npm i --save @sekiju/anonfiles-api
Functions
uploadAnonFile(content: string | File | Blob): Promise<SuccessfulResponse | ErrorResponse>
getAnonInfo(id: string): Promise<SuccessfulResponse | ErrorResponse>
Example
import { uploadAnonFile } from "@sekiju/anonfiles-api"
/* FileObject | PathToFile */
const res = uploadAnonFile("./files/image.png")