0.3.8 • Published 2 years ago

pixeldrainjs v0.3.8

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

Pixeldrain.js

A NodeJS wrapper for the pixeldrain.com API

Installation

$ npm install pixeldrainjs

Usage

import { Pixeldrain } from 'pixeldrainjs'

let client = new PixelDrain("your-api-key")

//Upload a new file
let file = await client.uploadFile({
    path: "./cat.jpg",
    name: "this is a file I uploaded from pixeldrain.js",
    anonymous: false,
})

//You can delete and download the file
await file.download("./downloads")
await file.delete()

//You can also get information about a existing file as well
let someOtherFile = await client.getFile("o1k5QbTE")
console.log(someOtherFile.id) //o1k5QbTE
0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago