# skema.duplex

> Duplex skema for mysql

Latest version **1.1.1** (published 2018-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install skema.duplex
pnpm add skema.duplex
yarn add skema.duplex
bun add skema.duplex
```

## 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.1.1 |
| Published | 2018-07-31 |
| First published | 2018-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 6 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kaelzhang |
| Maintainers | kael |
| Keywords | skema.duplex, mysql, scheme, skema |

## Links

- npm: https://www.npmjs.com/package/skema.duplex
- Repository: https://github.com/kaelzhang/skema.duplex
- Homepage: https://github.com/kaelzhang/skema.duplex#readme
- Issues: https://github.com/kaelzhang/skema.duplex/issues
- npm.io page: https://npm.io/package/skema.duplex

## Dependencies (6)

- [skema](https://npm.io/package/skema.md) ^9.3.5
- [moment](https://npm.io/package/moment.md) ^2.22.2
- [err-object](https://npm.io/package/err-object.md) ^3.0.5
- [make-array](https://npm.io/package/make-array.md) ^1.0.3
- [core-util-is](https://npm.io/package/core-util-is.md) ^1.0.2
- [lodash.foreach](https://npm.io/package/lodash.foreach.md) ^4.5.0

## Recent versions

- 1.1.1 (latest) — 2018-07-31
- 1.1.0 — 2018-07-31
- 1.0.0 — 2018-06-29
- 0.0.0 — 2018-06-29

## README

[![Build Status](https://travis-ci.org/kaelzhang/skema.duplex.svg?branch=master)](https://travis-ci.org/kaelzhang/skema.duplex)
[![Coverage](https://codecov.io/gh/kaelzhang/skema.duplex/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/skema.duplex)
<!-- optional appveyor tst
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/kaelzhang/skema.duplex?branch=master&svg=true)](https://ci.appveyor.com/project/kaelzhang/skema.duplex)
-->
<!-- optional npm version
[![NPM version](https://badge.fury.io/js/skema.duplex.svg)](http://badge.fury.io/js/skema.duplex)
-->
<!-- optional npm downloads
[![npm module downloads per month](http://img.shields.io/npm/dm/skema.duplex.svg)](https://www.npmjs.org/package/skema.duplex)
-->
<!-- optional dependency status
[![Dependency Status](https://david-dm.org/kaelzhang/skema.duplex.svg)](https://david-dm.org/kaelzhang/skema.duplex)
-->

# skema.duplex

Duplex skema

## Install

```sh
$ npm i skema.duplex
```

## Usage

```js
import duplex from 'skema.duplex'

const Member = duplex('Member', {
  id: [Number, String],
  name: String
})

Member.keys   // ['id', 'name']

Member.from({
  id: '123',
  name: 'kael'
})
// - id: 123
// - name: 'kael'

Member.fromR({
  id: 123,
  name: 'kael'
})
// -id: '123'
// -name: 'kael'
```

## License

MIT

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