dumdum

Dummy data generator for local development, demos and testing purposes.
Install
npm i -D dumdum
Example
import DumDum from "dumdum";
const dumdum = DumDum.create();
const plainText1 = dumdum.text(50);
console.log(plainText1);
const plainText2 = dumdum.text([100, 200]);
console.log(plainText2);
Roadmap
Generators
- HTML generator (
text()
generator) - Markdown generator (
text()
generator) - Number generator
Localization
- Chinese localization
- Japanese localization
- Portuguese localization
- Spanish localization
- Russian localization
Misc
- Questions support (
text()
generator) - Increase maximum length to
1,000
.
API
Options
Used with DumDum.create([config])
{
locale: "fr" | "en";
}
Methods
text(maxLength[, type])
maxLength
: Integer between 13 and 620.type
: String. Default to "plain"
.
text(interval[, type])
interval
: [minLength, maxLength]
minLength
: Integer between 12 and 619.maxLength
: Integer between 13 and 620.
type
: String. Default to "plain"
.
Contribute
Get Started
yarn
Test
- All Tests:
yarn test
- Lint Tests:
yarn test:lint
- Unit Tests:
yarn test:unit
- Unit Tests (watch):
yarn test:watch
Generate Data
yarn data:generate [fr|en]...