Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Elixir implementation of@helium 's Angry Purple Tiger (https://github.com/helium/angry-purple-tiger): animal-based hash digests for humans. 🐯

License

NotificationsYou must be signed in to change notification settings

codeadict/ex_purple_tiger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExPurpleTiger generates animal-based hash digests meant to be memorable andhuman-readable. This library is suitble for anthropomorphizing project names,crypto addresses, UUIDs, or any complex string of characters that needs to bedisplayed in a user interface.

Original idea and implementation based onangry-purple-tiger from Helium Systems, Inc.Thanks to them for coming up with such a fun library.

Installation

Ifavailable in Hex, the package can be installedby addingex_purple_tiger to your list of dependencies inmix.exs:

defdepsdo[{:ex_purple_tiger,"~> 0.1.0"}]end

Usage Examples

iex>ExPurpleTiger.animal_hash("my ugly input string"){:ok,"rapid grey rattlesnake"}iex>ExPurpleTiger.animal_hash("my ugly input string",style::uppercase){:ok,"RAPID GREY RATTLESNAKE"}iex>ExPurpleTiger.animal_hash("my ugly input string",separator:"-",style::titlecase){:ok,"Rapid-Grey-Rattlesnake"}

Running tests

Clone the repo and fetch its dependencies:

$ git clone https://github.com/codeadict/ex_purple_tiger.git$ cd ex_purple_tiger$ mix deps.get$ mix test

Copyright and License

The source code is under the Apache 2 License.

Copyright (c) 2019 Dairon Medina Caro

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

About

Elixir implementation of@helium 's Angry Purple Tiger (https://github.com/helium/angry-purple-tiger): animal-based hash digests for humans. 🐯

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp