
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@aggregion/agg-bundle
Advanced tools
npm install git+ssh://git@stash.aggregion.com:7999/bck/node-bundle-module.git --save
const AggregionBundle = require('agg-bundle');
// Create an instance
let bundle = new AggregionBundle({path: '/path/to/bundle'});
// Get list of files
bundle
.getFiles()
.then((fileNames) => {
console.log(fileNames);
});
// Get bundle info
bundle
.getBundleInfoData()
.then((data) => {
console.log('info', data);
});
// Get bundle properties
bundle
.getBundlePropertiesData()
.then((data) => {
console.log('properties', data);
});
// Set bundle info
bundle
.setBundleInfoData('some info string')
.then(() => {
return bundle.setBundleInfoData(new Buffer('or you can use buffer'));
})
.then(() => {
console.log('done');
});
// Set bundle properties
bundle
.setBundlePropertiesData('some info string')
.then(() => {
return bundle.setBundlePropertiesData(new Buffer('or you can use buffer'));
})
.then(() => {
console.log('done');
});
// Create new file
bundle
.createFile('path/to/file/to/create.dat')
.then((fd) => {
console.log(`created file with descriptor: ${fd}`);
});
// Open existing file
bundle
.openFile('path/to/existing/file.dat')
.then((fd) => {
console.log(`opened file with descriptor: ${fd}`);
});
// Read file
bundle
.readFileBlock(bundle.openFile('path/to/existing/file.dat'), 1024 * 1024)
.then((data) => {
console.log(`Read block with size: ${data.length}`);
});
// Read file properties
bundle
.readFilePropertiesData(bundle.openFile('path/to/existing/file.dat'))
.then((propsData) => {
console.log(propsData);
});
// Seek
let fd = bundle.openFile('path/to/existing/file.dat');
bundle.seekFile(
fd,
1000 // Position from begin
);
// Write file
bundle
.createFile('path/to/file/to/create.dat')
.then((fd) => {
return bundle.writeFileBlock(fd, new Buffer(1000))
})
.then(() => {
console.log('Block written');
});
// Write file properties
bundle
.writeFilePropertiesData(bundle.openFile('path/to/existing/file.dat'), 'some props')
.then(() => {
console.log('Properties written');
});
// Get file size
console.log(`Size of file: ${bundle.getFileSize('path/to/existing/file.dat')}`);
// Delete file
bundle.deleteFile('path/to/existing/file.dat');
npm test
FAQs
Node.js module for reading and creating Aggregion binary bundles
The npm package @aggregion/agg-bundle receives a total of 3 weekly downloads. As such, @aggregion/agg-bundle popularity was classified as not popular.
We found that @aggregion/agg-bundle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.