chansey
v1.0.0
Published
Chance.js with jsverify blessings
Downloads
10
Maintainers
Readme
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