- Notifications
You must be signed in to change notification settings - Fork0
Elixir implementation of@helium 's Angry Purple Tiger (https://github.com/helium/angry-purple-tiger): animal-based hash digests for humans. 🐯
License
codeadict/ex_purple_tiger
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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.
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
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"}
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 testThe 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
Uh oh!
There was an error while loading.Please reload this page.