This package has been deprecated

Author message:

Use filelist-utils instead

filelist-from
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

filelist-from

NPM version build status Test coverage npm download

Create a FileList from a path or a zip.

In order to make compatible code between the browser and node and to allow drag and drop of a folder it is useful to deal with FileList (that implements an Iterator of File).

This library allows to create such a FileList from a directory path (only available in nodejs) or from a zip file (available from nodejs and the browser).

Installation

npm i filelist-from

Usage

import { fileListFromPath } from 'filelist-from';

const fileList = fileListFromPath(join(__dirname));
import { fileListFromZip } from 'filelist-from';

const zip = readFileSync(join(__dirname, 'test.zip'));
const fileList = fileListFromZip(zip);

License

MIT

/filelist-from/

    Package Sidebar

    Install

    npm i filelist-from

    Weekly Downloads

    23

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    32.6 kB

    Total Files

    57

    Last publish

    Collaborators

    • cheminfo-bot
    • targos