
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@aggregion/agg-bundle-service
Advanced tools
This library can create, unpack, encrypt and decrypt bundles used in Aggregion.
Support creating from:
Supported bundles:
npm install git+ssh://git@stash.aggregion.com:7999/bck/bundle-service-js.git --save
To install on Ubuntu use the following command:
sudo apt-get install mupdf-tools
Service automatically resolves types of input and output by file extension or if passed path is a directory. So, supported extensions are:
const BundleService = require('agg-bundle-service');
// Create read stream
let readStream = BundleService.createReadStream({path: '/path/to/any/file/or/directory/example.epub'});
// Create write stream
let writeStream = BundleService.createWriteStream({path: '/path/to/any/file/example.agb', info: {someInfoToMix: 'info'}});
// Pipe one to another
readStream.pipe(writeStream);
// Waiting for finish
writeStream.on('finish', () => {
console.log('Done!');
});
// Encrypt
let encryptor = BundleService.createEncryptor(new Buffer(16));
readStream
.pipe(encryptor)
.pipe(writeStream);
// Decrypt
let decryptor = BundleService.createDecryptor(new Buffer(16));
readStream
.pipe(decryptor)
.pipe(writeStream);
// Render
let rendererStream = BundleService.createRenderer({path: 'path/to/render.pdf', pages: [1, 2, '3-10']});
readStream
.pipe(decryptor)
.pipe(rendererStream);
// Get source bundle info
readStream.on('ready', () => {
let info = readStream.getInfo();
let props = readStream.getProps();
let filesList = readStream.getFiles();
let filesCount = readStream.getFilesCount();
});
makebundle --help
makebundle -i path/to/index/file -o /path/to/output /path/to/input/file/or/directory
Run test without rendering features:
npm test
Run test with rendering features:
WITH_RENDERER=1 npm test
All rights reserved by Aggregion Ltd. Any use is only permitted with the consent of Aggregion.
For any questions: info@aggregion.com
FAQs
Service for working with Aggregion bundles
We found that @aggregion/agg-bundle-service 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.