New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flac-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flac-parser

small streaming parser for flac audio files

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

FLAC Audio File Metadata parser

A simple streaming parser for retrieving metadata from an .flac file.

Install

npm install flac-parser

Use

The parser is simply a stream in objectMode, so you can pipe and binary data into it and it will spit out tag objects.

var FLAC = require('flac-parser')
  , stream = require('fs').createReadStream('./my-file.flac')

var parser = stream.pipe(new FLAC());

parser.on('data', function(tag){
    console.log(tag.type)  // => 'samplesInStream'
    console.log(tag.value) // => 443520
})

Tags

In addition to the normal vorbis comments audio tags metadata the flac parser exposes additional flace info, from the STREAM_INFO block of the file

  • duration
  • minBlockSize
  • maxBlockSize
  • minFrameSize
  • maxFrameSize
  • channels
  • bitsPerSample
  • samplesInStream

consult the vorbis parser (used internally for comments) documentation for more information

Keywords

FAQs

Package last updated on 20 May 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc