Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@chartiq/vinyl-tar
Advanced tools
Create a tarball from a vinyl stream. Extract a tarball as a vinyl stream source.
npm install --save @chartiq/vinyl-tar
Creates a tarball from a vinyl stream. Acts like a vinyl adapter's destination stream.
const {pack} = require('@chartiq/vinyl-tar');
const fs = require('fs');
const through = require('through2');
const vfs = require('vinyl-fs');
vfs.src('**/*.txt')
.pipe(through.obj((file, enc, next) => {
const str = file.contents.toString();
file.contents = Buffer.from(str.toUpperCase());
next(null, file);
}))
.pipe(pack())
.pipe(fs.createWriteStream('./uppercase.tar'));
Emits each entry of the tarball as a vinyl object. Acts like a vinyl adapter's source stream.
const {extract} = require('@chartiq/vinyl-tar');
const fs = require('fs');
const through = require('through2');
const vfs = require('vinyl-fs');
fs.createReadStream('./files.tar')
.pipe(extract())
.pipe(through.obj((file, enc, next) => {
if (file.stat.isBuffer() && file.stat.size > 1024) {
next(null, file);
} else {
next(null);
}
}))
.pipe(vfs.dest('files'));
FAQs
vinyl binding for tar-stream
The npm package @chartiq/vinyl-tar receives a total of 4 weekly downloads. As such, @chartiq/vinyl-tar popularity was classified as not popular.
We found that @chartiq/vinyl-tar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.