This is mainly to generate a new name based on the module
decimal-to-any
This will generate a new name
rcs.nameGenerator.generate()
Example:
const rcs = require('rcs-core');
const newName = rcs.nameGenerator.generate();
Customize the used alphabet
rcs.nameGenerator.setAlphabet(alphabet)
Parameters:
- alphabet
<String>
Example:
const rcs = require('rcs-core');
rcs.nameGenerator.setAlphabet('abcde');
const newName = rcs.nameGenerator.generate(); // 'a'
Starts the alphabet at the first letter
rcs.nameGenerator.reset()
Usage:
const rcs = require('rcs-core');
rcs.nameGenerator.reset();