Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tenapato/username_generator
This package generates Docker-like unique usernames by combining a random adjective, a random surname, and a random 3-digit number.
https://github.com/tenapato/username_generator
docker npm npm-package unique username-generator
Last synced: 12 days ago
JSON representation
This package generates Docker-like unique usernames by combining a random adjective, a random surname, and a random 3-digit number.
- Host: GitHub
- URL: https://github.com/tenapato/username_generator
- Owner: tenapato
- Created: 2024-11-21T17:37:29.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T18:14:07.000Z (about 2 months ago)
- Last Synced: 2024-12-22T04:08:13.908Z (18 days ago)
- Topics: docker, npm, npm-package, unique, username-generator
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```sh
npm install @tenapato/username_generator
```## Usage
Import the generateUserName function from the package and call it to generate a unique username.
```js
import { generateUserName } from '@tenapato/username_generator';const username = generateUserName();
console.log(username); // Example output: "happy_turing_123"
```## Example
```js
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.