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.
This module is integrating @tokenizer/s3, for reading from the S3 cloud, and using music-metadata to parse the audio file.
This module is deprecated. It has become obsolete with @tokenizer/s3. You may want to use this example as starting point.
npm install @music-metadata/s3
Read metadata from 'My audio files/01 - My audio track.flac' stored in the S3 cloud:
const { parseS3Object } = require('@music-metadata/s3');
const S3 = require('aws-sdk/clients/s3');
(async () => {
const s3 = new S3();
console.log('Parsing...');
try {
const data = await parseS3Object(s3, {
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 { parseS3Object } = require('@music-metadata/s3');
const S3 = require('aws-sdk/clients/s3');
(async () => {
const s3 = new S3();
console.log('Parsing...');
try {
const data = await parseS3Object(s3, {
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
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.