1.0.1 • Published 4 years ago

anonfile-lib v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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.

Kind: module function

ParamType
idString

upload(filepath)

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

Kind: module function

ParamType
filepathString

###Examples:

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

anonfile.upload('FILEPATH').then((info) => {
	console.log(info);
});