keep2share

0.2.0 • Public • Published

Introduction

Node.Js implementation of Keep2Share and Fileboom APIs.

Installation

# cd /your/project/directory
# npm install keep2share --save

Usage

Uploading:

import * as API from 'keep2share'

const k2s = API.init('YOUR EMAIL HERE', 'YOUR PASSWORD HERE', 'keep2share.cc')

await k2s.login()
    .then(response => {
        console.log(response)
    })
await k2s.upload('/full/path/to/your/file.rar')
    .then( response => {
        console.log(response)
    })

Downloading:

//Use fboom.me instead of keep2share.cc if you want interact with Fileboom
import * as API from 'keep2share'

const k2s = API.init('YOUR EMAIL HERE', 'YOUR PASSWORD HERE', 'keep2share.cc')

await k2s.login()
    .then(response => {
        console.log(response);
    })
await k2s.download('https://k2s.cc/file/sdfgsdfgsdfsdfh/file.rar', '/path/to/assets')
    .then( response => {
        console.log(response);
    })

Package Sidebar

Install

npm i keep2share

Weekly Downloads

1

Version

0.2.0

License

SEE LICENSE IN <LICENSE>

Unpacked Size

20 kB

Total Files

6

Last publish

Collaborators

  • alex-kondakov