
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
id3-to-directories
Advanced tools
A CLI tool to organize a directory tree of unsorted (but ID3 tagged) MP3 files into an "Artist Name/Album Name/Song Title.ext" structure under a top-level directory specified by an environment variable.
A command-line tool to organize a directory of unsorted (but ID3 tagged) music files into "Artist Name/Album Name/Song Title.ext" sub-directory structure under a location specified by an environment variable.
We operate with the assumption that most users are going to have a primary "music directory" on their computer. For instance on linux environments, this will often be $HOME/Music
. We use this assumption to make the operation of this tool as simple as possible where you have to supply a single argument, the source directory which contains unsorted (but ID3 tagged) files.
I wrote this package over a few minutes while playing with the excellent node-id3 package and as such this tool addresses a limited use-case. But this being a GPLV3 package, feel free to submit PRs or fork the repo to support your own use case.
npm i -g id3-to-directories
In your .bashrc (or equivalent) export the variable MUSIC_STORAGE_DIRECTORY
. For instance,
export MUSIC_STORAGE_DIRECTORY=/home/adamsmith/Music
id3-to-directories /home/adamsmith/Downloads
This will cause all the mp3 files present in /home/adamsmith/Downloads
(and sub-directories) to be moved into corresponding /home/adamsmith/Music/<artist name>/<album name>/<song title>.<extension>
directories.
The real magic of reading ID3 tags is performed by the node-id3 package. I only wrote some very simple FS walking logic which uses the said package.
FAQs
A CLI tool to organize a directory tree of unsorted (but ID3 tagged) MP3 files into an "Artist Name/Album Name/Song Title.ext" structure under a top-level directory specified by an environment variable.
The npm package id3-to-directories receives a total of 6 weekly downloads. As such, id3-to-directories popularity was classified as not popular.
We found that id3-to-directories 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 uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.