anonfile-lib

1.0.1 • Public • Published

AnonFile Lib

Welcome to the AnonFile Api Wrapper made by Jacub


Docs:

get(id)

Gets the specified file from anonfile and returns a promise of the info object.

upload(filepath)

Uploads the specified file to anon file and returns a promise of the info object.

get(id)

Gets the specified file from anonfile and returns a promise of the info object.

Kind: module function

Param Type
id String

upload(filepath)

Uploads the specified file to anon file and returns a promise of the info object.

Kind: module function

Param Type
filepath String

Examples:

const anonfile = require('anonfile-lib');
anonfile.get('FILE ID').then((info) => {
    console.log(info);
});
 
anonfile.upload('FILEPATH').then((info) => {
    console.log(info);
});
 

Readme

Keywords

Package Sidebar

Install

npm i anonfile-lib

Weekly Downloads

837

Version

1.0.1

License

ISC

Unpacked Size

2.59 kB

Total Files

4

Last publish

Collaborators

  • jacubxyz