Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audio-type

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-type

Detect the audio type of a Buffer/Uint8Array

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
187K
decreased by-0.1%
Maintainers
1
Weekly downloads
 
Created

What is audio-type?

The 'audio-type' npm package is used to detect the file type of a given audio buffer. It supports various audio formats and provides a simple interface to determine the type of audio data.

What are audio-type's main functionalities?

Detect Audio Type

This feature allows you to detect the type of an audio file by reading its buffer. The code sample demonstrates how to read an audio file into a buffer and then use the 'audio-type' package to determine its type.

const audioType = require('audio-type');
const fs = require('fs');

const buffer = fs.readFileSync('path/to/audio/file');
const type = audioType(buffer);
console.log(type); // e.g., 'mp3', 'wav', etc.

Other packages similar to audio-type

Keywords

FAQs

Package last updated on 08 May 2014

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