andreasonny83/unique-names-generator

Names not defaulting to lowerCase, or respecting `type` option

JakeRowsell89 opened this issue · 1 comments

This snippet returns names capitalised, but colors and animals lowerCase:

const {
  uniqueNamesGenerator,
  colors,
  animals,
  names,
} = require("unique-names-generator");

const folderName = uniqueNamesGenerator({
  dictionaries: [colors, animals, names],
  separator: "-",
  type: "lowerCase",
});

console.log(folderName);

Using version 4.4.0

@JakeRowsell89 there is no type: "lowerCase", available in the configuration.
Instead you should use: style: "lowerCase"