# x-particles

> A Vue.js particles plugin base on particles.js

Latest version **1.0.9** (published 2018-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install x-particles
pnpm add x-particles
yarn add x-particles
bun add x-particles
```

## 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.9 |
| Published | 2018-03-23 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 2 |
| Unpacked size | 463.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 15 |
| Author | OXOYO |
| Maintainers | oxoyo |
| Keywords | vue, vue-plugin, particles.js, particles, vue-particles |

## Links

- npm: https://www.npmjs.com/package/x-particles
- Repository: https://github.com/OXOYO/X-Particles-Vue
- Homepage: https://github.com/OXOYO/X-Particles-Vue#readme
- Issues: https://github.com/OXOYO/X-Particles-Vue/issues
- npm.io page: https://npm.io/package/x-particles

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.2.6
- [particles.js](https://npm.io/package/particles.js.md) ^2.0.0

## Recent versions

- 1.0.9 (latest) — 2018-03-23
- 1.0.8 — 2017-06-13
- 1.0.7 — 2017-06-06
- 1.0.6 — 2017-06-06
- 1.0.5 — 2017-05-17
- 1.0.3 — 2017-05-17
- 1.0.2 — 2017-05-12
- 1.0.1 — 2017-05-12
- 1.0.0 — 2017-05-12

## README

# x-particles-vue

[![Version](https://img.shields.io/npm/v/x-particles.svg)](https://www.npmjs.com/package/x-particles)
[![License](https://img.shields.io/npm/l/x-particles.svg)](https://www.npmjs.com/package/x-particles)
[![NPM downloads](http://img.shields.io/npm/dm/x-particles.svg?style=flat-square)](https://npmjs.org/package/x-particles)
[![Downloads](https://img.shields.io/npm/dt/x-particles.svg)](https://www.npmjs.com/package/x-particles)
![JS gzip size](http://img.badgesize.io/https://unpkg.com/x-particles/dist/XParticles.js?compression=gzip&label=gzip%20size:%20JS&style=flat-square)

> A Vue.js particles plugin base on [particles.js](https://github.com/VincentGarreau/particles.js) .

## Example

``` bash
# git clone https://github.com/OXOYO/X-Particles-Vue.git

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev
```

## Usage

``` bash
## Packages install
npm install x-particles --save

## main.js
import XParticles from 'x-particles'

Vue.use(XParticles)

## App.vue
<style lang="less">
  .particles-background {
    background: #383838;
    height: 100%;
    width: 100%;
  }
</style>

<template>
  <div id="app" class="layout">
    <x-particles id="myParticles" class="particles-background" :config="config"></x-particles>
  </div>
</template>

<script>
  import defConfig from './config/default.js'
  //  import defConfig from './config/nasa.js'
  //  import defConfig from './config/bubble.js'
  //  import defConfig from './config/snow.js'

    export default {
      name: 'app',
      data () {
        return {
          config: {}
        }
      },
      created: function () {
        let _t = this

        _t.config = defConfig
      }
    }
<script>
```

## Preview
[Demo](https://oxoyo.github.io/X-Particles-Vue-Demo/)

![XParticles](https://raw.githubusercontent.com/OXOYO/X-Particles-Vue/master/docs/images/img_001.png "XParticles")

## Links
- [particles.js](https://github.com/VincentGarreau/particles.js)
- [vue](https://github.com/vuejs/vue)


## License
[MIT](http://opensource.org/licenses/MIT)

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