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

waveformer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waveformer

Calculates peaks of audio without drawing it to canvas or creating audio

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Waveformer

Calculates peaks of audio without drawing it to canvas or creating audio.

How it works

Based on Article from CSS Tricks

Installation

$ npm i waveformer

Usage

Only works in environment where AudioContext and fetch are defined, but you can provide your own through options (not tested in node.js, please use node-waveform or waveform-node)

import waveformer from 'waveformer'

const points = await waveformer(100, 'https://api.allorigins.win/raw?url=https://www.myinstants.com/media/sounds/epic.mp3')

options object:

waveformer(peaksNumber<Number>, url<String>, options<Object>)

options = {
  audioContext: AudioContext class,
  fetch: fetch async function,
  audioChannel: Number, // channel from which we should get data, default: 0
}

Glory to micro-packages (687 bytes minified)!

P.S: To person who published package at this name but then unpublished it. Blame yourself only, haha! 😝

Keywords

FAQs

Package last updated on 30 Oct 2021

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