Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

randyname

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randyname

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Randyname

Generate friendly and happy memorable random names to use in your apps or anywhere else.

Installation

Add this line to your application's Gemfile:

gem 'randyname'

And then execute:

$ bundle

Or install it yourself as:

$ gem install randyname

Usage

Randyname is pretty simple. There is nothing to configure and it only has a single method, .randymize:

Randyname.randymize # => "rough-snowflake-1142"

# Token range
Randyname.randymize(100) # => "nameless-star-13"

# Don't include the token
Randyname.randymize(0) # => "long-flower"

# Use a different delimiter
Randyname.randymize(9999, '.') # => "cool.leaf.6743"

# No token, no delimiter
Randyname.randymize(0, ' ') # => "green fire"

Customize words

Create config/initializers/randyname.rb

Add your custome list as follow

Randyname.adjectives = %w{good better}
Randyname.nouns = %w{boy girl}

FAQs

Package last updated on 09 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc