https://github.com/1024pix/randomix
https://github.com/1024pix/randomix
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/1024pix/randomix
- Owner: 1024pix
- License: gpl-3.0
- Created: 2024-02-02T10:22:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T02:00:31.000Z (6 months ago)
- Last Synced: 2025-03-22T06:38:20.264Z (about 1 month ago)
- Language: TypeScript
- Size: 92.8 KB
- Stars: 2
- Watchers: 11
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Randomix
## Configuration
```javascript
import * as generators from '@1024pix/randomix/generators';
import * as data from '@1024pix/randomix/data';
import { Randomix } from '@1024pix/randomix';export const randomix = new Randomix({
generators,
data,
});
```## Usage
```javascript
import { randomix } from './randomix';const generator = randomix.getGenerator({ locale: 'fr', seed: 42 });
const integer = generator.integer(10);
const person = generator.person();
```