Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1024pix/randomix
https://github.com/1024pix/randomix
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/1024pix/randomix
- Owner: 1024pix
- License: gpl-3.0
- Created: 2024-02-02T10:22:32.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T00:10:52.000Z (3 months ago)
- Last Synced: 2024-11-04T00:12:45.578Z (3 months ago)
- Language: TypeScript
- Size: 92.8 KB
- Stars: 2
- Watchers: 11
- Forks: 0
- Open Issues: 3
-
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();
```