Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
filelist-utils
Advanced tools
Create a FileCollection from various sources.
In order to make compatible code between the browser and node and to allow drag and drop of a folder it is useful to an abstraction level.
This package allows to create a FileCollection
from various sources:
relativePath
, name
, lastModified
, size
A FileCollection
has an iterator on FileCollectionItem
that has the following properties:
npm i filelist-utils
import { fileCollectionFromPath } from 'filelist-utils';
const fileCollection = fileCollectionFromPath(__dirname);
import { fileCollectionFromZip } from 'filelist-utils';
const zip = readFileSync(join(__dirname, 'test.zip'));
const fileCollection = fileCollectionFromZip(zip);
0.10.0 (2022-09-29)
chore!: rename FileList to FileCollection chore!: rename File to FileCollectionItem chore!: rename webkitRelativePath to relativePath feat: add fileCollectionFromFileList refactor: remove baseName option and fix on Windows feat: default unzip ungzip using fromFileList and fromWebService
FAQs
Create a FileCollection from a path or a zip file
The npm package filelist-utils receives a total of 795 weekly downloads. As such, filelist-utils popularity was classified as not popular.
We found that filelist-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.