# vue-audio-index

> first vue npm

Latest version **1.0.1** (published 2018-04-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-audio-index
pnpm add vue-audio-index
yarn add vue-audio-index
bun add vue-audio-index
```

## 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.0.1 |
| Published | 2018-04-27 |
| First published | 2018-04-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | cgf |
| Maintainers | cgfeng01 |
| Keywords | simple, vue, audio, javascript |

## Links

- npm: https://www.npmjs.com/package/vue-audio-index
- npm.io page: https://npm.io/package/vue-audio-index

## Dependencies (5)

- [vue](https://npm.io/package/vue.md) ^2.0.0
- [vue-loader](https://npm.io/package/vue-loader.md) ^15.0.0
- [vue-html-loader](https://npm.io/package/vue-html-loader.md) ^1.2.2
- [vue-style-loader](https://npm.io/package/vue-style-loader.md) ^1.0.0
- [vue-hot-reload-api](https://npm.io/package/vue-hot-reload-api.md) ^1.3.2

## Recent versions

- 1.0.1 (latest) — 2018-04-27
- 1.0.0 — 2018-04-25

## README

A simple music player component base on Vuejs(capy vue-simple-audio, from http://lavyun.github.io/vue-simple-audio/)
----------


### Effect:

![](http://p1.bqimg.com/567571/568fff0ed900b41a.png)

[demo](http://lavyun.github.io/vue-simple-audio/)


### How to use

- install with npm

```
npm install --save vue-audio-index
```

- use it in your component

```html
<template>
  <div id="app">
    <img src="./assets/logo.png">
    <hello></hello>
    <vue-simple-audio 
        :songs="songs" 
        width="500" 
        initial-volume="40" 
        loop auto-play
        repeat
        bg-color="#345345">
    </vue-simple-audio>
  </div>
  </div>
</template>

<script>
import VueAudioIndex from 'vue-audio-index'

export default {
  name: 'app',
  components: {
    'vue-audio-index':VueAudioIndex
  },
  data(){
    return {
      songs: [{
        "url": "http://fs.open.kugou.com/7840167216f9b80284d2bb2a9bd9554b/58ac0322/G076/M0A/0C/1D/7IYBAFgu5wmAOS2gAEuViOk9tuk748.mp3",
        "songname": "林俊杰-你的唯一"
      }, {
        "url": "http://fs.open.kugou.com/aecae9884f5c9ca2063864958ddb799e/58ac03ae/G008/M07/06/09/qIYBAFUK1BuAB-aSADmE5bqELvQ099.mp3",
        "songname": "Maroon-sugar"
      }]
    }
  }
}
</script>
```
### props
  
| params        |description               | default  |
| ------------- |:-------------:| -----:|
| songs      | A array of objects,it contains song's infomation,it has two property,the song's url and name | -- |
| auto-play      | auto play?      |  true |
| repeat | repeat the list?      |  true |
| loop | repeat one?      |  false |
| width | the player's width      |  300 |
| initial-volume | volume      |  60 |
| bg-color |the player's color| rgb(0,0,0)|

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