Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@chartiq/vinyl-tar
Advanced tools
Readme
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 38 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.