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