
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
compound-binary-file-js
Advanced tools
This is an implementation of [Compound Binary File v.3](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/53989ce4-7b05-4f8d-829b-d08d6148375b) \ Allows reading existing files, creation of the/write operation
This is an implementation of Compound Binary File v.3
Allows reading existing files, creation of the/write operation
To parse existing Compound Binary File:
const {CompoundFile} = require('compound-binary-file-js');
const reader = new FileReader();
reader.onload = () => {
const arrayBuffer = reader.result;
const cfb = CompoundFile.fromUint8Array(new Uint8Array(arrayBuffer));
const rootStorage = cfb.getRootStorage();
const subStorages = rootStorage.storages();
const subStreams = rootStorage.streams();
// etc.
};
reader.readAsArrayBuffer(input.files[0]);
Or alternatively you may use the following syntax if you read file as number[]:
var cfb = CompoundFile.fromUint8Array([...arrayOfBytes]);
To create new Compound File:
const {CompoundFile} = require('compound-binary-file-js');
const cfb = CompoundFile.empty();
const storage1 = cfb.getRootStorage().addStorage('storage1');
const stream1 = storage1.addStream('stream1', [1,2,3,4]);
const fileBytes = cfb.asBytes();
FAQs
This is an implementation of [Compound Binary File v.3](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/53989ce4-7b05-4f8d-829b-d08d6148375b) \ Allows reading existing files, creation of the/write operation
The npm package compound-binary-file-js receives a total of 423 weekly downloads. As such, compound-binary-file-js popularity was classified as not popular.
We found that compound-binary-file-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.