Generates Heroku-style random project names in Swift

Overview

RandomProjectName.swift

Generates Heroku-style random project names in Swift.

Usage

Just call String.randomProjectName(), and specify the optional suffix lengths and delimeters:

import RandomProjectName

let name = String.randomProjectName()
print(name) // mystic-sandwich

let name_with_suffix = String.randomProjectName(4)
print(name_with_suffix) // flying-cereal-d34f

let name_with_underscore = String.randomProjectName(separatedBy: "_")
print(name_with_underscore) // mysterious_basket

Contributing

Improvements to the code and word lists are welcome!

We prefer word additions that are amusing and will reject PRs with words that may be offensive. If you find any words that may offend in the list, please file a bug report!

Installation

  • Add .package(url: "https://github.com/nludb/RandomProjectName.swift", from: "1.0.0") to your Package.swift file's dependencies.
  • Update your packages using $ swift package update.

Special Thanks

This project uses the word lists found in the MIT Licensed @polleverywhere/random_username project. Thank you!

You might also like...
Make trains of constraints with a clean style!

Constren 🚂 . 🚃 . 🚋 Make trains of constraints with style! button.constren.centerY() .lead(spacing: 16) .trail(image.l

ObjectiveC additions for humans. Ruby style.
ObjectiveC additions for humans. Ruby style.

Write Objective C like a boss. A set of functional additions for Foundation you wish you'd had in the first place. Usage Install via CocoaPods pod 'Ob

Extensions which helps to convert objc-style target/action to swifty closures

ActionClosurable Usage ActionClosurable extends UIControl, UIButton, UIRefreshControl, UIGestureRecognizer and UIBarButtonItem. It helps writing swift

Enable autocomplete use resources in swift project.

ResourceKit Enable autocomplete use resources in swift project. まだハードコードで消耗してるの? ResourceKitで安全コーディング! How does ResourceKit work? ResouceKit makes you

A handy collection of Swift method and Tools to build project faster and more efficient.

SwifterKnife is a collection of Swift extension method and some tools that often use in develop project, with them you might build project faster and

This library project contains a few noise generators created in Swift.

SwiftNoiseGenerator This library project contains a few noise generators created in Swift. contains: Perlin Noise Simplex Noise How to use Edit your P

Project shows how to unit test asynchronous API calls in Swift using Mocking without using any 3rd party software

UnitTestingNetworkCalls-Swift Project shows how to unit test asynchronous API ca

Functional data types and functions for any project

Swiftx Swiftx is a Swift library containing functional abstractions and extensions to the Swift Standard Library. Swiftx is a smaller and simpler way

All the reusable code that we need in each project

SwiftyUtils SwiftyUtils groups all the reusable code that we need to ship in each project. This framework contains: Extensions Protocols Structs Subcl

Owner
NLUDB
NLUDB helps developers get more done with natural language processing.
NLUDB
Mac app to change .ipa file app icons and display names

IPAEdit Mac app to change .ipa file app icon, display name, and app version to avoid updates Compatible with macOS 10.11+ Install To install either cl

Ethan Goodhart 23 Dec 28, 2022
TypeStyle is a handy app for iPhone and iPad that generates text using different styles and decorations. It is a native Swift iOS app.

TypeStyle TypeStyle is a handy app for iPhone and iPad that generates text using different styles and decorations. It is a native Swift iOS app. Featu

Eugene Belinski 31 Dec 14, 2022
RandomKit is a Swift framework that makes random data generation simple and easy.

RandomKit is a Swift framework that makes random data generation simple and easy. Build Status Installation Compatibility Swift Package Manager CocoaP

Nikolai Vazquez 1.5k Dec 29, 2022
A tiny generator of random data for swift

SwiftRandom SwiftRandom is a tiny help suite for generating random data such as Random human stuff like: names, gender, titles, tags, conversations Ra

Kan Yilmaz 559 Dec 29, 2022
Random and time-ordered UUID generation in Swift

UniqueID UUIDv4 and v6* generation in Swift. [API Reference] A UUID is an identifier that is unique across both space and time, with respect to the sp

Karl 34 Nov 16, 2022
*Random Smooth Cloudy* Noise for SwiftUI

Noise Generate random smooth cloudy noise. Install Swift Package .

Anton Heestand 7 Dec 7, 2022
An offline random passcode generator.

Passcode-Generator An offline random passcode generator. Usage Generates random passcode. Install Files and source code could be found in releases. Pr

Vaida 0 Dec 10, 2021
Elegant Apply Style by Swift Method Chain.🌙

ApplyStyleKit ApplyStyleKit is a library that applies styles to UIKit using Swifty Method Chain. Normally, when applying styles to UIView etc.,it is n

shindyu 203 Nov 22, 2022
Basic Style Dictionary With Swift

Basic Style Dictionary This example code is bare-bones to show you what this framework can do. If you have the style-dictionary module installed globa

Tiago Oliveira 1 Nov 24, 2021
A danger-swift plug-in to manage/post danger checking results with markdown style

DangerSwiftShoki A danger-swift plug-in to manage/post danger checking results with markdown style Install DangerSwiftShoki SwiftPM (Recommended) Add

YUMEMI Inc. 4 Dec 17, 2021