npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mcfm

v1.0.6

Published

Monstercat FM Tools is a command line utility for getting informationfrom the Monstercat stream at http://twitch.tv/monstercat.

Downloads

10

Readme

Monstercat FM Tools

Monstercat FM Tools is a command line utility for getting informationfrom the Monstercat stream at http://twitch.tv/monstercat.

Availiable on npm: mcfm

By parsing monstercat's messages on the stream, it can recover some information about the currently playing song.

It currently can

  • Save current artist and song name to a file (great for using together with OBS or other streaming programs)
  • Download the current songs album art from Spotify

Getting started

mcfm-tools is built with node / iojs, so a working installation of node or iojs is required. Nodejs can easily be installed from nodejs.org. When nodejs is installed, make sure you can use it from the command line and you are ready to install mcfm

  1. Open a terminal and type npm install -g mcfm to install mcfm globally on your system
  2. type mcfm to make sure mcfm was installed properly
  3. Get an API key for using the Twitch chat through IRC, the easiest way is to use http://twitchapps.com/tmi/.
  4. type mcfm -u Ineentho -o oauth:7j8vge4o0l1js2m1z6gb936cpwhmm1, replacing Ineentho with your Twitch username and oauth:7j... with the key you got from twitchapps.
  5. Now, each time the song is changed it should be printed to your terminal. If that's working, you can continue to examples section to see how to save this information to a file

Examples

Keep in mind the oauth key you generated earlier will be required with all of these commands.

Save current song name to a file called current-song.txt

This is probably the easiest way to display the current song in most streaming programs (including OBS)

mcfm -u user -o oauthkey -f current-song.txt

You will now have a file called current-song.txt containging the current song like "Breakdown - Noisestorm" for example.

Customize the output format

If you aren't happy with default "Song - Artist", you can easily change it with the -F parameter.

mcfm -u user -o oauthkey -f current-song.txt -F "{song} by {artist}

Allowed parameters: Song: {song}, Artist: {artist}, Spotify url: {spotify}, Album art url: {art} (if --arts is specified)

Save the album art to a file

You can store the album art from spotify into a png file. This can be combined with any of the previous examples, or used as in this example.

mcfm -u user -o oauthkey -A albumart.png

Usage

mcfm -h will print all availiable options.