Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
ember-use-sound
Advanced tools
Add rich sound effects to your interactions in Ember!
This addon takes large inspiration from the React hook package use-sound
by Josh Comeau. Be sure to check out this great article he wrote which summarizes the huge benefits you get by enriching the user experience with a 2nd sensory input.
Utilizes the library ember-resources
under the hood to provide a Resource for loading and playing sounds via the wonderful Howler.js library.
This is a V2-format Addon with V1 compatibility
npm install ember-use-sound
# or
yarn add ember-use-sound
# or
ember install ember-use-sound
Any audio file you plan on referencing should be added within the /public/assets
directory of your ember application. They can then be referenced via relative paths in your code.
import { Component } from '@glimmer/component';
import { useSound } from 'ember-use-sound';
class Button extends Component {
popIn = useSound(this, () => ['/assets/pop-in.mp3']);
popOut = useSound(this, () => ['/assets/pop-out.mp3']);
}
<button
type='button'
{{on 'mousedown' this.popIn.play}}
{{on 'mouseup' this.popOut.play}}
>
Click me!
</button>
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Sound Effects for Ember Apps
The npm package ember-use-sound receives a total of 0 weekly downloads. As such, ember-use-sound popularity was classified as not popular.
We found that ember-use-sound demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.