summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-24 15:59:52 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-24 15:59:52 +0100
commiteb202135397e457baa58423faec4d8d0441c2292 (patch)
treeb918852eeb27e53f5b928c2bde3ef37b9d0a2e89 /README
parent19c58fff82a1c8e7f10b4ccc09711594d594e4a7 (diff)
downloadlibuniso-eb202135397e457baa58423faec4d8d0441c2292.tar.bz2
libuniso-eb202135397e457baa58423faec4d8d0441c2292.tar.xz
lua: accept both file descriptor or filename as parameter
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 8 insertions, 0 deletions
diff --git a/README b/README
index 1393d64..00e0bde 100644
--- a/README
+++ b/README
@@ -18,4 +18,12 @@ To install:
make install
+Example how to use Lua module:
+
+require("uniso")
+
+-- Use 0 for stdin
+print(uniso.uniso(arg[1] or 0, function(current, total, filename)
+ print(current, total, filename)
+end))