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

@ludovicm67/media-tools

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ludovicm67/media-tools

Media tools

  • 0.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by1000%
Maintainers
1
Weekly downloads
 
Created
Source

Media Tools

This package contains various tools to work with media files of different format.

Install this library

npm install @ludovicm67/media-tools

The following is also exposed:

  • Buffer: Buffer that works on both Node.js and browsers
  • utils.blobToArrayBuffer: a function to convert a Blob to an ArrayBuffer
  • mp4: MP4 tools
  • ogg: OGG tools
  • webm: WebM tools
  • fix: the function to use to fix a chunk by using the previous one
  • MediaTypes: an enum with the different media types

Angular

If you are using Angular, you might need to add buffer as an allowedCommonJsDependencies in your angular.json file, like this:

{
  "projects": {
    "YOUR_PROJECT": {
      "architect": {
        "build": {
          "options": {
            "allowedCommonJsDependencies": ["buffer"]
          }
        }
      }
    }
  }
}

by replacing YOUR_PROJECT with the name of your project.

This will prevent the display of some warnings when building your project.

Keywords

FAQs

Package last updated on 07 Mar 2024

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