# lastfm-nowplaying

> Last.fm "Now Playing" AngularJs Module

Latest version **1.5.0** (published 2017-08-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install lastfm-nowplaying
pnpm add lastfm-nowplaying
yarn add lastfm-nowplaying
bun add lastfm-nowplaying
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2017-08-21 |
| First published | 2017-07-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| Author | Curtis Timson |
| Maintainers | curttimson |
| Keywords | lastfm |

## Links

- npm: https://www.npmjs.com/package/lastfm-nowplaying
- Repository: https://github.com/curttimson/lastfm-nowplaying
- Homepage: https://github.com/curttimson/lastfm-nowplaying#readme
- Issues: https://github.com/curttimson/lastfm-nowplaying/issues
- npm.io page: https://npm.io/package/lastfm-nowplaying

## Dependencies (1)

- [angular](https://npm.io/package/angular.md) ^1.6.4

## Recent versions

- 1.5.0 (latest) — 2017-08-21
- 1.4.0 — 2017-08-04
- 1.2.1 — 2017-08-03
- 1.1.1 — 2017-08-01
- 1.1.0 — 2017-08-01
- 1.0.0 — 2017-08-01
- 0.3.0 — 2017-08-01
- 0.1.0 — 2017-07-27

## README

# lastfm-nowplaying
Last.fm "Now Playing" AngularJs Module

## Example

![](https://user-images.githubusercontent.com/15653985/28838108-2fcc5a1c-76e7-11e7-8282-65a3089a886c.png)

### Try it yourself

https://curttimson.github.io/lastfm-nowplaying/

## Installation

```
npm install lastfm-nowplaying
```
https://www.npmjs.com/package/lastfm-nowplaying

### Required Files
```
./node_modules/lastfm-nowplaying/dist/lastfm-nowplaying.min.js
./node_modules/lastfm-nowplaying/dist/lastfm-nowplaying.min.css
```


### Configuration

 - `apiKey` - Your Last.fm API Key which can be obtained here: https://www.last.fm/api/account/create
 - `user` - Your Last.fm username

#### Optional Configuration

 - `containerClass` - Allows the ability to specify a class for the content within the last.fm now playing component. This will allow you to set the same margins as the rest of your content.


### Example Usage

```
angular.module('app', ['lastfm-nowplaying'])
  .controller('mainCtrl', ['$scope', function($scope){

    $scope.lastFmConfig = {
        apiKey: 'API_KEY',
        user: 'USERNAME',
        containerClass: 'content'
      };

  }]);
```

```
<div lastfmnowplaying config="lastFmConfig"></div>
```


## Development

Please feel free to help develop this further. Below are the CLI steps you'll require to get setup.

```
npm install
gulp dev
```

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