npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

suggest-username

v0.1.2

Published

SuggestUsername: The Teeny Username Generator

Downloads

5

Readme

suggest-username Build Status Coverage Status

The Teeny Username Generator

Install

$ npm install --save suggest-username

Usage

API

Basic

const suggestUsername = require('suggest-username');

suggestUsername().then(username => {
	console.log(username);
});
//  Output example:
//  $ supersonic macebearer
//

Advanced

const suggestUsername = require('suggest-username');

suggestUsername(2, '.', 'randomLetters').then(username => {
	console.log(username);
});
//  Output example:
//  $ supersonic.macebearer.XcGvTt
//

CLI

Usage
$ suggest-username --help

  Options
    -n, --number-of-words  Number of random words generated [Default: 2]
    -g, --glue			   Used to join generated words [Default: ' ']
    -a, --append 		   [l|n] Append random [l]etters or [n]umbers to username [Default: '']
    --version 			   Installed software version
    --help 				   This help menu

Examples

Basic:
$ suggest-username
$ supersonic macebearer

Advanced:
$ suggest-username -n 2 -g . -a l
$ supersonic.macebearer.XcGvTt

API

suggestUsername(numberOfWords, glue, append)

numberOfWords

Type: integer

Default: 2

The number of random words generated.

glue

Type: string

Default: ' '

Used to join the generated words together.

append

Type: string

Default: ''

| Enum | | ------------- | | randomNumbers | | randomLetters |

Optionally append random letters of numbers.

Sources

Dictionary files: WordNet Princeton University "About WordNet." WordNet. Princeton University. 2010. http://wordnet.princeton.edu

License

MIT © Miles Nash