New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

curlyfile

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curlyfile

Download a file using curl, purely in C++ land

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Curlyfile

Direct file download in Node.js, using libcurl.

The goal of this module is to avoid sending data in JavaScript-land; while piping works perfectly fine, it also increases CPU usage for no good reason when all we want is to download a file to disk.

So this module simply pipes libcurl to a file, all in C/C++.

Requirements

Currently tested on Windows 10 and macOS.

  • CMake 3.5+

Installation

npm install --save Curlyfile

Usage

const Curlyfile = require('curlyfile').Curlyfile
const curly = new Curlyfile()
curly.download('http://some.file.com/hello', '/tmp/test-curly', function (error) {
  console.log('Done!', error ? error : null)
})

Development

git clone ...
cd curlyfile
git submodule update --init
# Or any cmake.js command - npm run -- cmake -h for more details
npm run cmake build

Todo

  • Proper tests
  • Cancel API
  • Progress API (# of bytes downloaded so far)
  • Prebuild for Node.js and Electron

Keywords

FAQs

Package last updated on 28 Dec 2016

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc