0.2.2 • Published 8 years ago

@mhio/check v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

@mhio/check

Check JS variables types

API docco

Install

yarn add @mhio/check
npm i @mhio/check --save

Usage

import { Check } from '@mhio/check'
let checkFn = Check.generate({
  first_name: {
    label: "First Name",
    check: 'length',
    args: [ 1, 64 ],
  },
  last_name: {
    label: "Last Name",
    check: 'length',
    args: [ 1, 96 ],
  }
  size: {
    label: "Size",
    type: 'integer' 
  }
})
const some_data = {
  first_name: 'Jimmy',
  last_name: 'Stewart',
  size: 42,
}
fn(some_data)

Links

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.5

8 years ago

0.1.5-6

8 years ago

0.1.5-5

8 years ago

0.1.5-4

8 years ago

0.1.5-3

8 years ago

0.1.5-2

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago