1.1.0 • Published 8 months ago

@tenapato/username_generator v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Username Generator

This package generates Docker-like unique usernames by combining a random adjective, a random surname, and a random 3-digit number.

Installation

You can install this package using npm:

npm install @tenapato/username_generator

Usage

Import the generateUserName function from the package and call it to generate a unique username.

import { generateUserName } from '@tenapato/username_generator';

const username = generateUserName();
console.log(username); // Example output: "happy_turing_123"

Example

import { generateUserName } from '@tenapato/username_generator';

console.log(generateUserName()); // Example output: "brave_curie_456"
console.log(generateUserName()); // Example output: "cool_einstein_789"

## Contributing

If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the ISC License. See the LICENSE file for details.

Author

Patricio Tena

Acknowledgments

Inspired by Docker's unique username generator.

1.1.0

8 months ago

1.0.0

8 months ago