You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@cloudflare/util-http-file

Package Overview
Dependencies
Maintainers
0
Versions
124
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


Version published
Weekly downloads
1.3K
increased by24.71%
Maintainers
0
Created
Weekly downloads
 

Readme

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 03 Jul 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc