
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-mp3-player
Advanced tools
An Mp3 player to play any audio file based on ReactJS
Install via NPM
npm install react-mp3-player
or use yarn
yarn add react-mp3-player
Import the Playlist component
import Playlist from 'react-mp3-player';
The tracks format will be ann array of objects, each object containing a name, description, src mp3 and an optional image
const tracks = [{ img: 'https://icon-library.net/images/music-icon-transparent/music-icon-transparent-11.jpg', name:'MP3', desc: 'Description 1', src:'Audio.mp3'},
{ img: 'https://icon-library.net/images/music-icon-transparent/music-icon-transparent-11.jpg', name:'MP3 #2', desc: 'Description 2', src:'Audio2.mp3'}]
Additional properties can be added to the component such as a right or left offset to decrease the width of the player as well as being able to choose the breakpoint for switching to mobile view, these options are passed into the playlist component in an object as props.
const playlistOverideStylingOpts = {
offset : {
left : 300
},
breakpoint : {
maxWidth : 768
}
};
Add the Player component and pass it the relative mp3 tracks as well as any addition style options as opts
<Playlist tracks={tracks} opts={playlistOverideStylingOpts}/>
Desktop

Desktop Hidden

Mobile

Mobile Hidden

Make any changes or additional features in the Player.js component and update the version (in the package.json) by 0.0.1 and then push all your changes to the repo.
Firstly make sure to build to the dist folder. Run
yarn build
Then publish the update to npm by running
npm publish
Your update should now be live on NPM. Make sure to update the package in your project by running
yarn upgrade react-mp3-player
Liam Riley - github.com/Liamriley123 Dannish Hussain - github.com/Dannish94 Austin Kershaw - github.com/austinmkershaw
FAQs
An Mp3 player to play any audio file based on ReactJS
The npm package react-mp3-player receives a total of 13 weekly downloads. As such, react-mp3-player popularity was classified as not popular.
We found that react-mp3-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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.