# vue-fun-rain

> This Code Rain,use Vue3 + Ts + Vite

Latest version **0.1.4** (published 2023-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-fun-rain
pnpm add vue-fun-rain
yarn add vue-fun-rain
bun add vue-fun-rain
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-07-18 |
| First published | 2023-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xiedudu |
| Maintainers | xiedu |
| Keywords | Vue3, TS, Vite, canvas |

## Links

- npm: https://www.npmjs.com/package/vue-fun-rain
- npm.io page: https://npm.io/package/vue-fun-rain

## Dependencies (6)

- [vue](https://npm.io/package/vue.md) ^3.3.4
- [pinia](https://npm.io/package/pinia.md) ^2.1.3
- [terser](https://npm.io/package/terser.md) ^5.19.0
- [vue-router](https://npm.io/package/vue-router.md) ^4.2.2
- [vue-fun-rain](https://npm.io/package/vue-fun-rain.md) ^0.1.3
- [unplugin-vue-components](https://npm.io/package/unplugin-vue-components.md) ^0.25.1

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 0.1.4 (latest) — 2023-07-18
- 0.1.3 — 2023-07-18
- 0.1.2 — 2023-07-18
- 0.0.10 — 2023-07-18

## README

# vue-fun-rain

## Install & Use

```bash
pnpm i vue-fun-rain
# or
npm install vue-fun-rain
# or
yarn add vue-fun-rain
```

Import and register component

**Global**

```ts
import { createApp } from 'vue'
import App from './App.vue'

import VueFunRain from 'vue-fun-rain'
import 'vue-fun-rain/css'

const app = createApp(App)
app.use(VueFunRain)
```

```ts
<ts-view :textCon="这是代码雨" :width="100" :height="100" />

```

**Attention**

注：如果在Ts下提示：无法找到模块“vue-fun-rain”的声明文件, 隐式拥有 "any" 类型, 添加一个包含 `declare module 'vue-fun-rain';` 的新声明(.d.ts) 。直接在项目project的根目录，新建一个 .d.ts 文件, declare module 'vue-fun-rain'对模块进行声明，如果存在env.d.ts文件，可以定义在里面，没有可以新建一个此文件。

## Components

Component name | Descriptions 
-- | -- 
TsView | 代码雨 

## Parameter

Parameter name | Type | Default value | other
-- | -- | -- | --
width | number | 100 | 宽度
height | number | 100 | 高度
textCon | string | 这是canva下代码雨插件哦 | 标题内容
textSize | number | 18 | 标题字体大小
canvasTxtCon | string | dudusaxxdhaizi010101 | 代码雨的内容
speeds | number | 10000 | 下雨的速度
backgroundColor | string | rgba(0,0,0,.05) | 背景颜色
rainColor | string | #0f0 | 雨的颜色

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