
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
electron-audio-conversion
Advanced tools
A promise-based library for loading audio files into HTML5 audio element in Electron. Uses the dataurl, id3 and mp3duration libraries.
A promise-based library for loading audio files into HTML5 audio. Uses the dataurl, id3 and mp3duration libraries.
npm install electron-audio-conversion
This library comes with 4 functions:
getSongDuration(filePath)
-- Takes a filepath and returns the duration of that song.
getSongTags(track)
-- Takes a track and returns the title, album and artist for that track.
createSongObject(filePath)
-- Takes a filepath, creates a new object, calls getSongDuration
and getSongTags
and returns a promise with a song object that has the track, title, album and artist.
createSongUri(filePath, mimetype)
-- Takes a filepath and creates a dataUri for that file. This dataUri is handed over to the HTML5 audio element to play the song.
In practice you'll likely only ever need createSongObject
and createSongUri
but you have access to the others if you need them.
This library makes it easier to pull audio files from the local file system and play them in the browser. We built this library to help with an Electron audio-player app and needed a way to create a playlist of song objects and then be able to make dataurl's on the fly for those songs as they're played.
FAQs
A promise-based library for loading audio files into HTML5 audio element in Electron. Uses the dataurl, id3 and mp3duration libraries.
The npm package electron-audio-conversion receives a total of 0 weekly downloads. As such, electron-audio-conversion popularity was classified as not popular.
We found that electron-audio-conversion 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.