# vue-ts-component

> TypeScript class decorator can scoped css for Vue component.

Latest version **0.0.5** (published 2017-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-ts-component
pnpm add vue-ts-component
yarn add vue-ts-component
bun add vue-ts-component
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-12-25 |
| First published | 2017-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| Author | Mervyn Zhang |
| Maintainers | foreverzmy |
| Keywords | vue, class, babel, typescript, ts, vue-ts, component |

## Links

- npm: https://www.npmjs.com/package/vue-ts-component
- Repository: https://github.com/foreverzmy/vue-ts-componet
- Homepage: https://github.com/foreverzmy/vue-ts-componet#readme
- Issues: https://github.com/foreverzmy/vue-ts-component/issues
- npm.io page: https://npm.io/package/vue-ts-component

## Dependencies (4)

- [postcss](https://npm.io/package/postcss.md) ^6.0.14
- [posthtml](https://npm.io/package/posthtml.md) ^0.11.0
- [vue-class-component](https://npm.io/package/vue-class-component.md) ^6.1.2
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) 2.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2017-12-25
- 0.0.4 — 2017-12-25
- 0.0.3 — 2017-12-24
- 0.0.2 — 2017-12-24
- 0.0.1 — 2017-12-24

## README

# vue-ts-component

> TypeScript class decorator can scoped css for Vue component.

## install

```bash
// npm
$ npm i -s vue-ts-component

// yarn
yarn add vue-ts-component
```

Example: [vue-ts-componnet](https://github.com/foreverzmy/vue-ts-component-demo)

```ts
import Vue from 'vue';
import Component from 'vue-ts-component';

@Component({
  name: 'HelloWorld',
  template: require('./HelloWorld.html'),
  style: require('./HelloWorld.scss'),
  scoped: true // open scoped for css
})
export default class HelloWorld extends Vue {
  public msg = 'Welcome to Your Vue.js App.';
}
```

## Other

Detail: [vue-class-component](https://www.npmjs.com/package/vue-class-component)

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