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

politokens

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

politokens

  • 1.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Politokens

Gem Version Build Status Coverage Status

Generate Heroku-like memorable random names to use in your apps or anywhere else, but with a geopolitical twist. Fork of Haikunator

Installation

Add this line to your application's Gemfile:

gem 'politokens'

And then execute:

$ bundle

Or install it yourself as:

$ gem install politokens

Usage

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

Politokens.politoke # => "rough-snowflake-1142"

# Token range
Politokens.politoke(100) # => "nameless-star-13"

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

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

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

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

FAQs

Package last updated on 20 Jun 2015

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