examples icon indicating copy to clipboard operation
examples copied to clipboard

fake-names-generator : Names generated in console are different from ones saved in file

Open senechalloic opened this issue 4 years ago • 1 comments

Thanks for this repository, I'm learning NodeJs and this helps me.

Issue

I think there is a small issue in project cli/commander/fake-names-generator. When we choose to save the names, the display names are different than the one shown in the console.

RootCause

I think the issue come from logNames() and saveNames() that generate two times the names in cli\commander\fake-names-generator\bin\cli.js.

Possible solution

logNames() could return the generated names and pass it to saveNames().

senechalloic avatar Jan 24 '21 08:01 senechalloic

Thanks for bringing this up. It is a good point, I'll create a fix for this.

Thiruppathi avatar Nov 20 '21 18:11 Thiruppathi