0.2.2 • Published 7 years ago

@mhio/check v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.5

7 years ago

0.1.5-6

7 years ago

0.1.5-5

7 years ago

0.1.5-4

7 years ago

0.1.5-3

7 years ago

0.1.5-2

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago