You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@cloudflare/util-http-file

Package Overview
Dependencies
Maintainers
29
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/util-http-file

Cloudflare HTTP File Util

1.2.13
npmnpm
Version published
Weekly downloads
662
-14.03%
Maintainers
29
Weekly downloads
 
Created
Source

cf-util-http-file

Cloudflare HTTP File Util

Installation

$ npm install cf-util-http-file

Usage

upload('/api/upload-file', fileInput.files[0], res => {
  console.log('Success!');
}, err => {
  console.log('Failed!');
});
download('/api/download-file', 'filename.txt', res => {
  console.log('Success!');
}, err => {
  console.log('Failed!');
});

Note: This is only really meant for plain text files, it might work with other stuff but don't expect it to.

FAQs

Package last updated on 29 Apr 2022

Did you know?

Socket

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