Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
ls-archive
Advanced tools
List or read the files and folders inside archive files.
Supported file extensions:
npm install ls-archive
npm install
grunt
to compile CoffeeScript codegrunt test
to run the specsarchive = require 'ls-archive'
List the files and folders inside the archive file path. The callback
gets
two arguments (error, archiveEntries)
.
archivePath
- The string path to the archive file.
callback
- The function to call after reading completes with an error or
an array of ArchiveEntry objects.
Read the contents of the file path in the archive path and invoke the callback
with those contents. The callback
gets two arguments
(error, filePathContents)
.
archivePath
- The string path to the archive file.
filePath
- The string path inside the archive to read.
callback
- The function to call after reading completes with an error or
the Buffer contents.
Read the contents of the gzipped archive path and invoke the callback with the
Buffer contents of the uncompressed paths. The callback
gets two arguments
(error, pathContents)
.
gzipArchivePath
- The string path to the gzipped archive file.
callback
- The function to call after reading completes with an error or
the Buffer contents.
Class representing a path entry inside an archive file.
Is the entry a file?
Returns true
if a file, false
otherwise.
Is the entry a folder?
Returns true
if a folder, false
otherwise.
Is the entry a symbolic link?
Returns true
if a symbolic link, false
otherwise.
Get the path of this entry.
Returns the string path.
FAQs
A package for listing and reading files in archive files
The npm package ls-archive receives a total of 836 weekly downloads. As such, ls-archive popularity was classified as not popular.
We found that ls-archive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.