Lastname package provides functionality to generate a fake last name value.
npm
npm install @fakerjs/lastname --save-dev
yarn
yarn add @fakerjs/lastname -D
import lastName from '@fakerjs/lastname';
lastName();
//=> Roberts
lastName({locale: 'en_US'});
//=> Roberts
// Allowed locale: en_US, ru_RU, pl_PL, uk_UA, it_IT, de_DE, fr_FR
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko