Socket
Book a DemoInstallSign in
Socket

csv-downloader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-downloader

Help to download csv files through HTML5 browser and save as local file

1.0.8
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

csv-downloader

A helper for a HTML5 web app to download a CSV file and save.

Currently, following splitting feature does not work. Do not download large CSV file that is larger than about 400 MB. Browser might crash.

A huge CSV file will be split to several files. The byte size of the splitted each chunk is able to be specified. This feature is needed by a limitation of a Blob object MAX size. It is said that the MAX size of a Blob object is about 500 MB.

USAGE

const CsvDownloader = require("csv-downloader");

const url = "https://path-to-the-csv";
const outputFilename = "filename-for-the-downloaded.csv";
const chunkSize = //A threshold byte size to split the csv by the line
    480 * 1024 * 1024;

CsvDownloader.download(url, outputFilename, chunkSize);

INSTALLATION

Use npm to install

$ npm install --save csv-downloader

Keywords

CSV

FAQs

Package last updated on 18 Apr 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.