Skip to content

m241dan/dluautils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

dluautils

Just a nifty little lua utils module for 5.3

Written by Daniel R. Koris

This library requires lfs

This library does a few simple things:

  • table.getn( table ): get the real size of the table
  • table.getKey( table, value ): returns the key for a given value if it is in the table
  • table.contains( table, value ): returns true if the table contains the given value
  • string.capitalize( string ): returns a capitalized version of a string
  • string.split( string, delimiter): returns a table of strings at the delimiter (defaults to spaces)
  • requireCheck( rpath ): returns true if a file is there and can be required (automatically adds ".lua" extension)
  • save( data, file ): serializes data to given file(custom tables will need specialized :serialize() functions)
  • fileExists( path ): check to see if a file exists

About

Just a nifty little lua utils module for 5.3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages