Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
exfm logo belongs to exfm. Node.js logo belongs to Node.js. This project is not an official exfm project and is not affliated with.
Connect to the ex.fm API, get information and stream music!
exfm.user("silvinci").loved(cb);
exfm.song("8ugg").pipe(fs.createWriteStream("never.mp3"));
exfm.song.search("Never Gonna Give You Up");
$ npm install exfm
The exfm API makes use of chaining. Who doesn't like chaining?
Get a user's profile information.
exfm.user("dan", function(err, user) {
if(err) throw err;
console.log(user.name); // "Dan Kantor"
});
Get a user's loved songs.
exfm.user("dan").loved(function(err, songs) {
if(err) throw err;
console.log(songs); // [{ title: "Golden Light", ... }, ...]
});
Get a user's followers.
exfm.user("dan").followers(function(err, users) {
if(err) throw err;
console.log(users); // [{ username: "silvinci", ... }, ...]
});
Get users a user is following.
exfm.user("dan").following(function(err, users) {
if(err) throw err;
console.log(users); // [{ username: "majman" ... }, ...]
});
Get the IDs of the users the user is following.
exfm.user("dan").followingIds(function(err, ids) {
if(err) throw err;
console.log(ids); // ["majman", "chase", ...]
});
Get sites the user is following.
exfm.user("dan").followingIds(function(err, sites) {
if(err) throw err;
console.log(sites); // [{ name: "Black Light Dinner Party" }, ...]
});
Get a feed of songs loved by users the user is following.
exfm.user("dan").loveFeed(function(err, songs) {
if(err) throw err;
console.log(songs); // [{ object: { title: "Where's The Time", ... }, ... }, ...]
});
Get a feed of a user's activity, including loved songs, shared songs, and followed users.
exfm.user("dan").activity(function(err, activities) {
if(err) throw err;
console.log(activities); // [{ object: { title: "Where's The Time", ... }, ... }, ...]
});
Get a feed of a user's loved songs.
exfm.user("dan").activityLove(function(err, loves) {
if(err) throw err;
console.log(loves); // [{ object: { title: "Where's The Time", ... }, ... }, ...]
});
Get a feed of actions being perfomed on the user, such as loving of songs the user has loved (AKA relove) and following the user-
exfm.user("dan").notifications(function(err, msgs) {
if(err) throw err;
console.log(msgs); // [...]
});
(The MIT License)
Copyright (c) 2013 Jan Buschtöns buschtoens@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Flexible redirection plugin
We found that exfm 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.