
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
react-tunes-player
Advanced tools
A simple .ogg/.mp3 player. This component uses Redux to store it's state. The benefit of using Redux is the ability of dispatching action to control the player functions.
pauseCurrentTune()
- This action creator will dispatched an action to pause current tune being played.playCurrentTune()
- This action creator will dispatched an action to play current tune being played.setNextTune()
- This action creator will dispatched an action to go to the next tune in the tunes list.setPreviousTune()
- This action creator will dispatched an action to go to the previous tune in the tunes list.npm install --save react-tunes-player
react-tunes-player
https://github.com/zulucoda/react-tunes-player-test
ReactTunesPlayerContainer
into your viewimport { ReactTunesPlayerContainer } from "react-tunes-player";
ReactTunesPlayerContainer
to your view.
<ReactTunesPlayerContainer
tunes={[
{
tune: "/assets/audio/the_lego_tune.ogg",
name: "The lego tune",
album: "/assets/images/dune.jpg"
},
{
tune: "/assets/audio/bensound-funkysuspense.mp3",
name: "Funky Suspense",
album: "/assets/images/funkysuspense.jpg"
}
]}
/>
ReactTunesPlayerContainer
takes in tunes prop, tunes must set with the following info://Tune object
{
tune: [URL/LOCATION_FOR_TUNE],
name: [NAME_OF_THE_TUNE],
album: [URL/LOCATION_FOR_ALBUM_ART]
}
//example
{
tune: "/assets/audio/the_lego_tune.ogg",
name: "The lego tune",
album: "/assets/images/dune.jpg"
}
reactTunesPlayerReducer
into your reducers filesimport { reactTunesPlayerReducer } from "react-tunes-player";
combineReducers
export default combineReducers({
reactTunesPlayerReducer
});
NOTE: This repo was created using create-react-app
and it was ejected to create this npm package.
Thanks to Pavel Lokhmakov - Have a look at his blog post on how to create npm package using create-react-app
Best way to create npm packages with create-react-app
Royalty Free Music from Bensound
MIT License.
Copyright (c) 2017 Muzikayise Flynn Buthelezi (zuluCoda).
FAQs
A simple .ogg/.mp3 player.
The npm package react-tunes-player receives a total of 6 weekly downloads. As such, react-tunes-player popularity was classified as not popular.
We found that react-tunes-player 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.