Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
An opinionated React wrapper for howler.js
Rehowl has react and howler as peer dependencies so that you can manage your own versions.
npm install howler rehowl
yarn add howler rehowl
Documentation and live examples are available at https://tedmor.in/rehowl
The source of these examples is ./stories
It's recommended to view the examples.
However, at its core Rehowl works by using useHowl
or <Howl />
to get a howl instance, then playing sounds off that instance with one or more <Play />
components:
import { useHowl, Play } from 'rehowl'
import bark from './assets/bark.mp3'
const Autoplay = () => {
const { howl, state } = useHowl({ src: bark })
return <Play howl={howl} />
}
See the docs for examples on how to play multiple sounds off of one howl, how to use audio sprites, and how to control volume, seek, etc.
When deciding to use Howler in a React project, a quick Google Search brings you to react-howler.
There are a few issues that make ReactHowler unsuitable for my needs:
Overall, it feels much more like a barebones wrapper for Howler that doesn't really give you any help when trying to integrate it into your components.
My main goals in this project are to make a library that feels like Howler, if Howler were built for React.
FAQs
Opinionated React wrapper for Howler.js
The npm package rehowl receives a total of 54 weekly downloads. As such, rehowl popularity was classified as not popular.
We found that rehowl 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.