a-three
Version:
cute three-word IDs similar to a variety of modern site slug generators. QUIRKY for real
15 lines (13 loc) • 402 B
JavaScript
import {describeAllOptions, format} from './lib/format.js';
import {generate} from './lib/lib.js';
const main = async (numberOfAdjectives = 2, formatType = 'array') => {
let result = await generate(numberOfAdjectives);
if (formatType !== 'array') {
result = result.join(' ');
return format(result, formatType);
} else {
return result;
}
};
export default main;