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

cancelandholdattime-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cancelandholdattime-polyfill

Polyfill for AudioParam.prototype.cancelAndHoldAtTime()

  • 1.13.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

cancelandholdattime-polyfill

Polyfill for AudioParam.prototype.cancelAndHoldAtTime()

Donate Build Status semantic-release Commitizen friendly JavaScript Style Guide

What is this project

AudioParam.prototype.cancelAndHoldAtTime() is an experimental function in the Web Audio API and only supported by Chrome based browsers.

Installation

Method 1 - add the built version to your code

Download and add https://github.com/the-monochord/cancelandholdattime-polyfill/blob/master/dist/cancelandholdattime-polyfill.min.js to your js files, then add it to your html page before other webaudio scripts with a script tag.

Method 2 - ES6 import in a nodejs project

Add the polyfill to your nodejs project by running npm i cancelandholdattime-polyfill.

Then import it in your main script:

import 'cancelandholdattime-polyfill'

// ... other imports

Method 3 - add it to your project in build time with webpack

Add the polyfill to your nodejs project by running npm i cancelandholdattime-polyfill.

Then add it to the webpack config before other files in the entry point:

// webpack.config.js
const config = {
  entry: {
    'youroutput': [
      'cancelandholdattime-polyfill/dist/cancelandholdattime-polyfill.min.js',
      './src/index.js'
    ]
  },
  // ...
}

Limitations and todos

The following methods of the AudioParam object yet to be added to the repo, so calling cancelAndHoldAtTime to intersect those doesn't have any effect:

setTargetAtTime() setValueCurveAtTime()

These should be added in the near future.

Resources

FAQs

Package last updated on 10 Apr 2019

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