node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

chansey

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.

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