Skip to content

Latest commit

 

History

History

string-trim

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

String Trim

This was plucked from the Luvit Snippets Wiki.

Install

$ lit install james2doyle/string-trim

Usage

local trim = require('string-trim')

print(trim("   a string ")) -- prints 'a string'