<commit_before># lastfm-node

Periodically monitors a user's recent plays feed on Last.fm.

## Events

* lastPlayed(track) - The user's last scrobbled track.
* nowPlaying(track) - Track the user is currently listening to.
* error(error) - Ruh-roh.

## Usage

var LastFmNode = require('lastfm-node').LastFmNode;

var lastfm = new LastFmNode({
  api_key: 'abc',
  user: 'username'
});

lastfm.addListener('lastPlayed', function(track) {
  console.log('Last played: ' + track.name);
});

lastfm.addListener('nowPlaying', function(track) {
  console.log('Now playing: ' + track.name);
});

lastfm.stream();

## Influences

Heavily drawn from (almost ripped off, in fact) technoweenie's twitter-node
http://github.com/technoweenie/twitter-node<commit_msg>Formatting<commit_after># lastfm-node

Periodically monitors a user's recent plays feed on Last.fm.

## Events

* lastPlayed(track) - The user's last scrobbled track.
* nowPlaying(track) - Track the user is currently listening to.
* error(error) - Ruh-roh.

## Usage

    var LastFmNode = require('lastfm-node').LastFmNode;
    
    var lastfm = new LastFmNode({
      api_key: 'abc',
      user: 'username'
    });
    
    lastfm.addListener('lastPlayed', function(track) {
      console.log('Last played: ' + track.name);
    });
    
    lastfm.addListener('nowPlaying', function(track) {
      console.log('Now playing: ' + track.name);
    });

    lastfm.stream();

## Influences

Heavily drawn from (almost ripped off, in fact) technoweenie's twitter-node
http://github.com/technoweenie/twitter-node
{'fraction_non_alphanumeric': 0.13872832369942195, 'fraction_numerical': 0.0, 'mean_word_length': 3.9460317460317462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3123275', 'n_tokens_mistral': 539, 'n_tokens_neox': 516, 'n_words': 125}