From 8a3bb6185784d23ba4a849d6d3e607bfa11a6d78 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 11 Dec 2018 14:45:34 +0100 Subject: [PATCH] Update README.md --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 228b374..b451f00 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,9 @@ You can install the minified version using NPM with NodeJS: `npm i svg-lua` ## usage -To use the installed minified version, you must add the reference for LUA to the file. -To do it, add the following at the begining of your LUA file *(replace by the correct string eg: ".\\" if it's in the same directory)*: -***If you are using relative path, think it's the path from the LUA binaries files, not from you code file*** +To use the installed minified version with `Require "svg-lua"`, you must add the reference for LUA to the file. -```lua -package.path = package.path .. ";" .. "\\node_modules\\svg-lua\\?.lua" -require "svg-min" -``` +Check the `package.path` documentation for more information about it. ```lua mon_dessin = svg:create() -- 2.51.2