1.0.0 • Published 8 years ago

chansey v1.0.0

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

Chansey

a wrapper that provides jsverify generator blessings for all of the chance.js methods.

This module simply transforms each method on chance to accept the appropriate options, and return a blessed generator.

npm.io

Example:

import chansey from 'chansey'
import jsc     from 'jsverify'

export const Row = jsc.record({
  id     : chansey.guid(),
  int    : chansey.integer(),
  arr    : jsc.array(chansey.word),  
  name   : chansey.string({pool: 'abc'}),
  text   : chansey.paragraph(),
  o      : jsc.json
});

An auto-generated list of all methods that are blessed can be found here