Skip to content

1.14.3

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Nov 18:25
· 93 commits to main since this release

Glu

[Y2K Compliant]

A modular utility library for Mudlet that just works. No fuss, no muss.

Quick Start

-- Get some Glu in your life
local glu = Glu("MyPackage")

-- String manipulation? Easy.
local fancy = glu.string.capitalize("hello world")  -- "Hello world"

-- Dates giving you trouble? Not anymore.
local pretty_time = glu.date.shms(3665, true)      -- "1h 1m 5s"

-- Need some table magic?
local data = {a=1, b=2, c=3}
local just_values = glu.table.values(data)         -- {1, 2, 3}

Extend It

Want to add your own stuff? Glu's got you covered:

Glu.glass.register({
  name = "awesome",
  class_name = "AwesomeClass",
  setup = function(___, self)
    function self.double_it(num)
      ___.v.type(num, "number", 1, false)
      return num * 2
    end
  end
})

-- Now use it!
local doubled = glu.awesome.double_it(21)  -- 42

Documentation

Check out our Wiki for detailed documentation, guides, and examples.

License

IDGAF License - Do whatever you want with this code. Seriously.

  • Use it ✅
  • Modify it ✅
  • Copy it ✅
  • Translate it to Klingon ✅
  • Turn it into a interpretive dance routine ✅

Just have fun and make cool stuff! 🚀

Liquid glue icons created by Freepik - Flaticon