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()