From 96f85158be4829f3cc0b9ee09442e26486cee7b2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 4 Mar 2018 13:03:15 +1100 Subject: src/fengari.js: Export luaconf --- README.md | 1 + src/fengari.js | 2 ++ 2 files changed, 3 insertions(+) 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; -- cgit v1.2.3-70-g09d2