chansey

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i chansey

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ondreian