# @try-parser/fte

> ``` npm i @try-parser/fte -S ```

Latest version **0.2.8** (published 2019-08-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install @try-parser/fte
pnpm add @try-parser/fte
yarn add @try-parser/fte
bun add @try-parser/fte
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2019-08-09 |
| First published | 2019-05-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 5.8 MB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tryparser |
| Maintainers | try-parser |

## Links

- npm: https://www.npmjs.com/package/@try-parser/fte
- Repository: https://github.com/Try-Parser/fte
- Homepage: https://github.com/Try-Parser/fte#readme
- Issues: https://github.com/Try-Parser/fte/issues
- npm.io page: https://npm.io/package/@try-parser/fte

## Dependencies (9)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [vuex](https://npm.io/package/vuex.md) ^3.0.1
- [core-js](https://npm.io/package/core-js.md) ^3.2.0
- [vuetify](https://npm.io/package/vuetify.md) ^2.0.5
- [vue-router](https://npm.io/package/vue-router.md) ^3.1.2
- [flag-icon-css](https://npm.io/package/flag-icon-css.md) ^3.3.0
- [vue-class-component](https://npm.io/package/vue-class-component.md) ^7.0.2
- [vue-property-decorator](https://npm.io/package/vue-property-decorator.md) ^8.2.1
- [register-service-worker](https://npm.io/package/register-service-worker.md) ^1.6.2

## Recent versions

- 0.2.8 (latest) — 2019-08-09
- 0.2.7 — 2019-08-09
- 0.2.6 — 2019-08-09
- 0.2.5 — 2019-08-08
- 0.2.4 — 2019-08-07
- 0.2.3 — 2019-08-07
- 0.2.2 — 2019-08-07
- 0.2.1 — 2019-08-07
- 0.2.0 — 2019-05-30
- 0.1.9 — 2019-05-22
- 0.1.8 — 2019-05-22
- 0.1.7 — 2019-05-22
- 0.1.6 — 2019-05-21
- 0.1.5 — 2019-05-21
- 0.1.4 — 2019-05-17
- … 4 more at https://npm.io/package/@try-parser/fte/versions

## README

# fte guides

## Installation

```
 npm i @try-parser/fte -S
```

### Plugins

```
 import Vue from 'vue'
 import Components from '@try-parser/fte'
 import '@try-parser/fte/dist/fte.css'

 Vue.use(Components)
```

### main.ts

```
 import './plugins/fte'
```

## Example Code

```
<e-form ref="ezForm">
  <e-input v-model="firstname" 
           kv="first_name" 
           :value="firstname" 
           label="Firstname" 
           :rules="[]" 
           klass="sample class" 
           type="text"
	   tip="right">
  </e-input>
</e-form>

let form = this.$refs.ezForm

if(form.validate()) {
  console.log(form.gen())
}
 ```


## Example Rules

```
const defaultRule:any = [
	(v:any) => !!v || 'Field is required',
	(v:any) => (v && v.length <= 1024) || 'Name must be less than 1024 characters'
]

const emailRule: any = [
	(v: any) => !!v || 'E-mail is required',
	(v: any) => /.+@.+/.test(v) || 'E-mail must be valid'
]

const emptyRule: any = [
	(v: any) => !!v || 'Field is required',
]

const uuidRule: any = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
```

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