Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
generate-random-username
Advanced tools
A tiny module to generate a random username from a list of adjectives and animals.
A tiny package to generate a random username from a list of adjectives and animals.
This package will generate close to 200k different unique usernames, even more with digits appended. The wordlist has been manually reviewed to ensure the words are appropriate for use in a username.
Options exist for a custom separator between the username, limiting username to a maximum length, adding random digits, and capitalizing the words in the username.
npm install generate-random-username
import generateRandomUsername from 'generate-random-username';
generateRandomUsername();
//=> 'humble-shrew'
generateRandomUsername({ capitalize: true });
//=> 'Witty-Camel'
generateRandomUsername({ separator: '_' });
//=> 'safe_llama'
generateRandomUsername({ maxLength: 10 });
//=> 'clear-eel'
generateRandomUsername({ digits: 3, capitalize: true });
//=> 'Unaffected-Cat-184'
Type: object
Type: boolean
Default: false
Whether to capitalize each word used in the username.
Type: string
Default: '-'
Separator to use between words in the username.
Type: number
Default: 0
Number of random digits to append to end of username.
Type: number
Default: null
The maximum length of a username to generate. For lengths under 10, it may not always find a username under that length, and will fallback to returning a longer username.
FAQs
A tiny module to generate a random username from a list of adjectives and animals.
The npm package generate-random-username receives a total of 68 weekly downloads. As such, generate-random-username popularity was classified as not popular.
We found that generate-random-username demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.