Skip to content
PowerShell implimentation of PetName name generator
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Builders
Media
.gitattributes
LICENSE
README.md
ps-petname.ps1

README.md

ps-petname

Name

ps-petname is a PowerShell implimentation of the PetName name generator from Dustin Kirkland (https://github.com/dustinkirkland/petname).

Description

This script will generate "pet names", consisting of a random combination of an adverb, adjective, and an animal name. These are useful for unique hostnames or container names, for instance.

As such, PetName tries to follow the tenets of Zooko’s triangle. Names are:

  • human meaningful
  • decentralized
  • secure

Usage

ps-petname takes three parameters:

  • Number of words to use in the name (default is 3)
  • Separator to use (default is "-")

Screenshot of PowerShell Window

petname builders

There are two "builder" scripts.

petname-variable-builder.ps1 is a script that pulls the source data from Dustin's repo and then creates the "small", "medium" and "large" variable files that can be dotsourced in.

ps-petname-builder.ps1 creates the monolithic "ps-petname" that includes the database information in it as variables. The posted version of ps-petname.ps1 uses the medium database.

To-do

I really should turn this into a module - so that is on the backlog. But if anyone wants to take a crack at it, contributions are welcome :-)

Author

This utility was created by Benjamin Armstrong, based on the original project by Dustin Kirkland

You can’t perform that action at this time.