Fradulent Digital Token, a digital_token shim

This package is a small shim that replaces the digital_token package, a direct dependency of the ex_cldr_numbers package (and therefore a dependency of the otherwise excellent ex_cldr internationalization suite).

In addition to the resources consumed by the original digital_token package, my Elixir code is intended for consumption in a context where any promotion of cryptocurrencies, even accidentally, is undesirable.

The digital_token package pulls in a large (2471 elements and around 8MB in-memory) registry containing extensive metadata for a number of affinity scams (cryptocurrencies) I will never use, in addition to two Mix tasks (my cup runneth over) and several dependencies.

Since it is supposedly impossible to remove the ex_cldr_numbers dependency on digital_token according to the developer of both packages (I love your work on ex_cldr, please make better life choices), this package exists as an override for digital_token that's meant to be compatible with its API in every way, except that it fraudulently replaces all of the cryptocurrency data and code for fetching and transforming it with a tiny amount of code that returns DigitalToken-shaped data relevant to the cryptocurrency skeptic community Buttcoin. It does this with zero Mix tasks and zero required dependencies, and its runtime memory impact is too small to reasonably measure.

Installation

Unfortunately, since the Mix :override flag in the package spec doesn't let you specify the name of the package that should be overridden, there's no way to use this package from the Hex package index. Use it from git instead:

def deps do
  [
    {:digital_token, git: "https://codeberg.org/awful-systems/fraudulent_digital_token.git", override: true}
  ]
end

If you have an existing digital_token dependency in your project, Mix might need some prodding to be convinced to let you swap it out.

Jokes can be found at https://hexdocs.pm/fraudulent_digital_token.

Q&A

no thanks