New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3
Source
npm
Version published
Maintainers
1
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
  • 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

media

FAQs

Package last updated on 09 Feb 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