@bndynet/dator
v1.1.1
Published
A data generator
Downloads
3
Readme
dator.js
CDN
<script type="text/javascript" src="https://unpkg.com/@bndynet/dator/dist/index.js"></script>
<script>
// dator.generate(...)
</script>
Package
npm i @bndynet/dator -D
import { generate } from '@bndynet/dator';
const mockData = generate(10, {
Visits: {
type: 'number',
args: {
min: 100,
max: 10000,
},
},
Views: {
type: 'number',
args: {
min: 100,
max: 10000,
},
},
Hits: {
type: 'number',
args: {
min: 100,
max: 10000,
},
},
});