Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.