Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
readzip
Advanced tools
Readme
Read zip archive in simplest possible way.
npm i readzip
path
contains information about current file, it has next methods:
isFile([name])
check if current entitiy
is file, also compares path, when name
passed;isDirectory([name])
checks if current entity
is directory, also compares path, when name
passed;openReadStream
- promise, returns file stream
;stop
- close archive file and break from traversing loop;Also path
has fields that can be used to get some information
name
size
date
mode
directory
type
owner
import readzip from 'readzip';
const archivePath = './hello.zip';
for await (const path of readzip(archivePath)) {
const {name} = path;
if (path.isFile()) {
console.log('file:', name);
}
if (path.isDirectory()) {
console.log('directory:', name);
}
}
Similar to info returned by readify.
dropbox
MIT
FAQs
read zip archive in simplest possible way
The npm package readzip receives a total of 274 weekly downloads. As such, readzip popularity was classified as not popular.
We found that readzip demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.