random-firstname
Version:
Generate a random first name.
52 lines (32 loc) • 1.45 kB
Markdown
# random-firstName
> Generate a random first name.
[](https://github.com/mock-end/random-firstName/blob/master/LICENSE)
[](https://travis-ci.org/mock-end/random-firstName)
[](https://coveralls.io/github/mock-end/random-firstName)
## Install
```
$ npm install --save random-firstName
```
## Usage
```js
var randomFirstName = require('random-firstName');
// API
// - randomFirstName([options]);
// options
// - gender
randomFirstName();
// => 'Leila'
```
Optionally specify a gender to limit first names to that gender:
```js
randomFirstName({ gender: 'female' });
// => 'Emma'
```
## Related
- [random-lastName](https://github.com/mock-end/random-lastName) - Generate a random last name.
- [random-fullName](https://github.com/mock-end/random-fullName) - Generate a random full name.
- [random-age](https://github.com/mock-end/random-age) - Generate a random age.
- [random-birthday](https://github.com/mock-end/random-birthday) - Generate a random birthday.
## Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please [create an issue](https://github.com/mock-end/random-firstName/issues/new).