# scribble

> quick and sloppy Last.fm scrobbler and API library

Latest version **0.0.5** (published 2015-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install scribble
pnpm add scribble
yarn add scribble
bun add scribble
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2015-01-22 |
| First published | 2012-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | TerrordactylDesigns |
| Maintainers | terrordactyldesigns |
| Keywords | lastfm, scrobble |

## Links

- npm: https://www.npmjs.com/package/scribble
- Repository: https://github.com/TerrordactylDesigns/scribble
- Issues: https://github.com/TerrordactylDesigns/scribble/issues
- npm.io page: https://npm.io/package/scribble

## Recent versions

- 0.0.5 (latest) — 2015-01-22
- 0.0.4 — 2013-02-10
- 0.0.3 — 2012-12-17
- 0.0.2 — 2012-12-09
- 0.0.1 — 2012-12-07

## README

#Scribble
###Simple Last.fm scrobbler for node.js

#####Scribble down the song

[![Build Status](https://travis-ci.org/TerrordactylDesigns/scribble.png?branch=master)](https://travis-ci.org/TerrordactylDesigns/scribble)

###PreReqs

Get a last.fm API account and save the api key, api secret, and your username and password.

###Install
    npm install scribble

###Use it

```JavaScript
var scribble = require('scribble');
// Build your scrobbler using your API keys and user info
var Scrobbler = new scribble('your_api_key','your_api_secret','your_lastfm_username','your_lastfm_password');
// Make a song object in your app
var song = {
  artist: 'Slayer',
  track: 'Disciple',
  album: 'God Hates Us All' // Only needed for album info call
};

/*
  POST methods
  All return the XML response from the POST requesta
*/
// Now Playing
Scrobbler.NowPlaying(song, function(post_return_data) {});
// Scrobble
Scrobbler.Scrobble(song, function(post_return_data) {});
// Love
Scrobbler.Love(song, function(post_return_data) {});

/*
  GET methods
  All return the parsed JSON response from Last.fm
*/
// Get Album
Scrobbler.GetAlbum(song, function(ret) {});
// Get Artist Info
Scrobbler.GetArtistInfo(song.artist, function(ret) {});
// Get Similar Artists
Scrobbler.GetSimilarArtists(song.artist, function(ret) {}, optional_return_amount_defaults_to_50);
// Get Artist Events
Scrobbler.GetArtistEvents(song.artist, function(ret) {}, optional_return_amount_defaults_to_50);
// Get Artist Top Albums
Scrobbler.GetTopAlbums(song.artist, function(ret) {}, optional_return_amount_defaults_to_50);
// Get Artist Top Tracks
Scrobbler.GetArtistTopTracks(song.artist, function(ret) {}, optional_return_amount_defaults_to_50);
// Get Similar Songs
Scrobbler.GetSimilarSongs(song, function(ret) {}, optional_return_amount_defaults_to_50);
// Get Track Info
Scrobbler.GetTrackInfo(song, function(ret) {});
// Get Album Info
Scrobbler.GetAlbumInfo(song, function(ret) {});
```
###Tests

    npm install
    make test
    or
    npm test

---
_Source: https://npm.io/package/scribble · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
