# @core-framework/forms

> Form handling and validation for Core Framework

Latest version **0.1.0** (published 2017-04-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @core-framework/forms
pnpm add @core-framework/forms
yarn add @core-framework/forms
bun add @core-framework/forms
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-04-22 |
| First published | 2017-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.7.4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | atheros |
| Keywords | core, framework, core-framework, forms, form |

## Links

- npm: https://www.npmjs.com/package/@core-framework/forms
- Repository: https://github.com/core-framework-js/forms
- Issues: https://github.com/core-framework-js/forms/issues
- npm.io page: https://npm.io/package/@core-framework/forms

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [validator](https://npm.io/package/validator.md) ^7.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-04-22
- 0.0.2 — 2017-04-21
- 0.0.1 — 2017-04-15

## README

Core Framework / Forms
======================

[![NPM Version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Coveralls][coveralls-image]][coveralls-url]

[npm-image]: https://img.shields.io/npm/v/@core-framework/forms.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@core-framework/forms
[travis-image]: https://img.shields.io/travis/core-framework-js/forms.svg?style=flat-square
[travis-url]: https://travis-ci.org/core-framework-js/forms
[coveralls-image]: https://img.shields.io/coveralls/core-framework-js/forms.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/core-framework-js/forms?branch=master


About
-----

Form definition and validation library for Core Framework.


Install
-------

**NOTE** This framework is work-in-progress, please don't use it in production yet!

```js
npm install --save @core-framework/forms
```


Examples
--------

Simple form example:

```js
let forms = require('@core-framework/forms');
let MyForm = forms.create([
    forms.field('field1', 'Bob').notEmpty(),
    forms.field('checkbox', true).checkbox()
]);

//...

let form = MyForm.createInstance(req.body);
let result = form.validate();

console.log(form.messages);
console.log(form.values);
```

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