Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@music-metadata/s3
Advanced tools
Extension for music-metadata to read metadata from audio files on Amazon S3 storage
Extension for music-metadata to retrieve metadata from files stored on Amazon Web Services (AWS) S3 cloud storage.
The magic of this module is, it is able to extract the metadata from your audio files, without downloading and parsing the entire file. Using @tokenizer/range, it partial downloads the files, just accessing the chunks holding the metadata.
npm install @music-metadata/s3
Read metadata from 'My audio files/01 - My audio track.flac' stored in the S3 cloud:
const { MMS3Client } = require('@music-metadata/s3');
const S3 = require('aws-sdk/clients/s3');
(async () => {
const s3 = new S3();
const mmS3client = new MMS3Client(s3); // Pass S3 client to music-metadata-S3-client
console.log('Parsing...');
try {
const data = await mmS3client.parseS3Object({
Bucket: 'your-bucket',
Key: 'My audio files/01 - My audio track.flac'
}
);
console.log('metadata:', data);
} catch (e) {
console.error(`Oops: ${e.message}`);
}
})();
Using conventional streaming using the disableChunked
flag:
const { MMS3Client } = require('@music-metadata/s3');
const S3 = require('aws-sdk/clients/s3');
(async () => {
const s3 = new S3();
const mmS3client = new MMS3Client(s3); // Pass S3 client to music-metadata-S3-client
console.log('Parsing...');
try {
const data = await mmS3client.parseS3Object({
Bucket: 'your-bucket',
Key: 'My audio files/01 - My audio track.flac'
}, {
disableChunked: true // Disable chunked transfer
}
);
console.log('metadata:', data);
} catch (e) {
console.error(`Oops: ${e.message}`);
}
})();
option | type | description |
---|---|---|
disableChunked | boolean | set to true to switch to conventional sequential streaming. |
Other options are inherited from music-metadata
FAQs
Extension for music-metadata to read metadata from audio files on Amazon S3 storage
The npm package @music-metadata/s3 receives a total of 21 weekly downloads. As such, @music-metadata/s3 popularity was classified as not popular.
We found that @music-metadata/s3 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.