Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/1024pix/randomix


https://github.com/1024pix/randomix

Last synced: 2 months ago
JSON representation

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();
```