summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--src/fengari.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index b145f68..78c12ca 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,7 @@ However it is rare to use this repository directly.
Once you've loaded fengari, you can use the JS API:
```javascript
+const luaconf = fengari.luaconf;
const lua = fengari.lua;
const lauxlib = fengari.lauxlib;
const lualib = fengari.lualib;
diff --git a/src/fengari.js b/src/fengari.js
index 18efd6c..2fec89a 100644
--- a/src/fengari.js
+++ b/src/fengari.js
@@ -26,10 +26,12 @@ module.exports.to_jsstring = core.to_jsstring;
module.exports.to_luastring = core.to_luastring;
module.exports.to_uristring = core.to_uristring;
+const luaconf = require('./luaconf.js');
const lua = require('./lua.js');
const lauxlib = require('./lauxlib.js');
const lualib = require('./lualib.js');
+module.exports.luaconf = luaconf;
module.exports.lua = lua;
module.exports.lauxlib = lauxlib;
module.exports.lualib = lualib;