Socket
Socket
Sign inDemoInstall

anonfile-lib

Package Overview
Dependencies
47
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    anonfile-lib

A anonfile api wrapper


Version published
Weekly downloads
730
decreased by-3.44%
Maintainers
1
Install size
3.70 MB
Created
Weekly downloads
 

Readme

Source

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

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);
});

Keywords

FAQs

Last updated on 27 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc