{"_id":"nodelua","_rev":"51-c960f6103776cb07c2e46b700cf13b5e","name":"nodelua","description":"Lua Bindings For Node.JS","dist-tags":{"latest":"0.3.3"},"versions":{"0.1.0":{"name":"nodelua","version":"0.1.0","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"test/test.js","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.0","dist":{"shasum":"a4059f57208f6a6e932ea7689d51adbaf8d741cb","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.0.tgz","integrity":"sha512-TrzGxljH4LRzoJC08+0QvD7eYqJ05kxtNUSS0rNEMQu8Rdp+BJ/y7HaT1xw/SHygH6XfMl2mxIDHRLNEMjpruA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPhOIe383eHaWX5rHC0VgUGqGtl+xax0OHFNzy77Sw6AiEA6Nf6a9YoqXoE1bxZLsgPZt4g/7MaZSPZZtKBEQ+uIN4="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.1.1":{"name":"nodelua","version":"0.1.1","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.1","dist":{"shasum":"c303687615102b528211fb2dddd0e65c1968c395","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.1.tgz","integrity":"sha512-/EEAJiIvjQo7gPCB4v/CjtnHbuqx/FAx2Fg0uQKingC4jcnMnP6zyTOsiwZ+SGtegNUS/TLPaAMnHOdSUcQ+uQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH20CAdJFJoX07i+9w/rFj7A5B79kC4XMpVkA5PyUfLPAiEArb0wnrHn192pBZ59xF/OiGU41HX7AMmS2TiUfAVXHqs="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.1.3":{"name":"nodelua","version":"0.1.3","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.3","dist":{"shasum":"3eeb9319543915326c8e54ab3c80b1cd8d3b7aac","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.3.tgz","integrity":"sha512-cWTKRs0is2Vr9PEGjxo75LXxUk4fib9YsFCNa4GKtSxF6WY/eHVqMRfz5sc8FBj5XnOK/Z5YzxbZz23yVRksxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEF82I75UcAIA++qKUrpUeTK95+aYYqzqdqhAeaSCJXQIhAIa5iDHMvWwCI525K/kLzMw8MccjT/ALxY7HZsr4cQkF"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.1.4":{"name":"nodelua","version":"0.1.4","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.4","dist":{"shasum":"2b4572403290c39f11afa1232e67251c6d823fba","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.4.tgz","integrity":"sha512-0Hpl8PgvOSPlINzGboD6+VacBaazdIN4a186aHl9aufP4Z2hj7GRt0/YiM6+4cZrj1eYZThOUOJ+C4q8QpYXMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkfEmAEBNnc7/9/9qHBxsN+d8cugwTgoRLNgvEoP3u4AIhAIH+e/iG47jyHmAcJIaQ0BRsqaMZWIFGEne37HfWQnzK"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.1.5":{"name":"nodelua","version":"0.1.5","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.5","dist":{"shasum":"d68897a5ee486d2a914e662bc25a00f036636a07","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.5.tgz","integrity":"sha512-TeAs1zH/YvNnHv4VIUyVPnujHrHs4sEdH/nPHbA+Oh4QAQt4YfVEuF4a6FACP2gHYHz++up2uP+8aNJyWYWYkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbwEJmSgP+YVu+ewPoyQ3iPzmKVWH7YPTyOT2t3GZkTAiA7TzqYw6D/J6Gcm6rxiT7dL8IT0svEvSUrK2zyDKjQbg=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.1.6":{"name":"nodelua","version":"0.1.6","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.6","dist":{"shasum":"85b377e1b1faf9540259f83f14e36c2afc38af99","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.6.tgz","integrity":"sha512-Dxh5etQ/Mt37zpbB+1kZk+m5nVnQMwcf952yBysHL5UIZkJOCcKRi6fSeMbHpe/6F3Xch8H843xL4vfx0BDPIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcCYmbsB9haU+4uAmcM2SBIrfho4J0Vzn8JayaER6YrAiEAxYd/hq6OLkn+7+zaprXnIswYNl18soZRUO7HsO4+mVY="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.1.7":{"name":"nodelua","version":"0.1.7","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.1.7","dist":{"shasum":"9233c33f59f0fc7d1656df5c8e92c7c3844c23b0","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.1.7.tgz","integrity":"sha512-dQ2K2AGvh3UWaVN0Z0NaxAMq8RUcnrUcG/pQa7j6ToBstzpWv+jIgmwO/BY4yuLURVSkcw4hfqEakVDwb4VPbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1n5283gzT++H76Func34QJMDPRT0sEJXDv+jjN/z3KAiEA7mSMQehY0K2ndNe6iEFmyLEUeM7vyD0dpasaGijbwfY="}]},"_npmVersion":"1.1.70","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.2.0":{"name":"nodelua","version":"0.2.0","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.2.0","dist":{"shasum":"5284698cbb2a33a82a3d1bb392efd613a33854e0","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.2.0.tgz","integrity":"sha512-ScbTgXdKkm7nUhhmfJwRAiWrsw8hSK1DXAdesjhv99bzwCdwg5sNvCsLXJiCAgOW3V1b8mg0q9l9pUmIvsRK7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICakMJ/u8Jdm1owSjyBUUWTRXLPIvqCAuOqvujaulfrrAiEA8mVnwc9y8zWhQn3+ts3A2+ahb42Jwgz/b1oUeN9fQCs="}]},"_npmVersion":"1.1.70","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.2.1":{"name":"nodelua","version":"0.2.1","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.2.1","dist":{"shasum":"07c5524afa9896a52009daf001f2289a0fdd4b7a","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.2.1.tgz","integrity":"sha512-F+pDBJM1FhwWYPNlcFy3WgCUatSxprE+mjD9cnjuoxoe8iVNURl+GyZtvS2JmGQsUYQMUI96rJO4mzKeHgb3AA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU98yX4TY61daVdL6BvFTXBNO74q697AihOQ7/cAjMPQIgZRl8MU5P7COMq130FSGGtvBLAO0uMB7sHfJdHaS7a/c="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.2.2":{"name":"nodelua","version":"0.2.2","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":"*","_id":"nodelua@0.2.2","dist":{"shasum":"590a7e20dc89de9542aa002b2407d0e57498511d","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.2.2.tgz","integrity":"sha512-D3v/jrpbV6T5SAwh+MdHcTxLdxaD/Sa71ZTlhjLf0tySyBoPAb+CxioaQY9hmWeWl3MSffMpRVqAMCeuAykyjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoNxFNjaV0kIWGbnnJUq6daSKm76c5QVx2x1ZTZ+pgpAiBTuv8mbNu/W9lZSiNEboo6F5xh8p6mQLZnf5Snnjg60w=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.2.3":{"name":"nodelua","version":"0.2.3","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":{"node":">=0.8.0 <0.10.0"},"engineStrict":true,"bugs":{"url":"https://github.com/brettlangdon/nodelua/issues"},"_id":"nodelua@0.2.3","dist":{"shasum":"ba3fc27a95eee061f57b28a10e953c755927e42e","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.2.3.tgz","integrity":"sha512-47MKjfxnCRLffz3wrfwGPKokPBV30yjCdp55+BLVIf9QwxYSLLZTYCw94rxK0OgX/q7X2m+iSpKLoeMSRCujbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgH6hM1hAXTbisNzQmB11ve6jCmPRRrS8P39clv/AwYwIgTer6WGgyHLN9yyLLiacPjNFrw0orqmgO7IccOdVGpnk="}]},"_from":".","_npmVersion":"1.3.1","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.3.0":{"name":"nodelua","version":"0.3.0","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"license":"MIT","gypfile":true,"engines":{"node":">=0.10.0"},"engineStrict":true,"bugs":{"url":"https://github.com/brettlangdon/nodelua/issues"},"_id":"nodelua@0.3.0","dist":{"shasum":"a9f137a9ac514365f593f650534e5cddf8f7d11f","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.3.0.tgz","integrity":"sha512-Emr1QUx3qinqGg5aIZzLG+JURRlV4Cqwcg3gM32L+ASHDqO8NQ1BHT+Da2cEJRf1/Sco/RTRokPATMa9UzWUoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/zBtQ2gbPq1zERVT/WbNitPSgIFwOd/n51ZA/b6fCKgIhAN6KSveQre41YHRn4BSi3CNe2aW6/6PNANtD4YDHhR/m"}]},"_from":".","_npmVersion":"1.3.1","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.3.1":{"name":"nodelua","version":"0.3.1","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"contributors":[{"name":"York Gu","email":"gyq5319920@gmail.com","url":"http://blog.yorkgu.me"}],"license":"MIT","gypfile":true,"engines":{"node":">=0.10.0"},"engineStrict":true,"bugs":{"url":"https://github.com/brettlangdon/nodelua/issues"},"_id":"nodelua@0.3.1","dist":{"shasum":"70a4284ca29f876a569b95b0a063fd5634ac0194","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.3.1.tgz","integrity":"sha512-zQxHm9+wHBT9tybtZTAulyl5sqUk3bMLpRNSvGCJOV/zvlBFVQ6uHaOFCn1fCB1R6IT8MN+kBcutCTh8o/Pp1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhcnC8GxUiOnn2OYhP7Uv0p5pND4SQAdePq4tDP3OwmQIhAJOZbzGeNDgucAWXOKEOCQiO8ITyb1yzMTWHyW31yrsp"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.3.2":{"name":"nodelua","version":"0.3.2","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"contributors":[{"name":"York Gu","email":"gyq5319920@gmail.com","url":"http://blog.yorkgu.me"}],"license":"MIT","gypfile":true,"engines":{"node":">=0.10.0"},"engineStrict":true,"bugs":{"url":"https://github.com/brettlangdon/nodelua/issues"},"_id":"nodelua@0.3.2","dist":{"shasum":"44e8f8bf7bffdfeb9e747f7f03455afc916c124e","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.3.2.tgz","integrity":"sha512-rN9CA5rtGIYtOXsHDk9TVuzfRqsrXD4e+p1OXEQuKExfimLQjtlvDdvuJWmuH7tApkhABHpLi5Xymidt+4OK/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUtk7rekPHkOxocyIGFy5I99rYsTDyBy3r89+PYLIm4AiBwtK4vJbbcq4A8gWdt4uowRiJ5M/iCPn6OPJWrOj+nRA=="}]},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"directories":{}},"0.3.3":{"name":"nodelua","version":"0.3.3","description":"Lua Bindings For Node.JS","keywords":["lua"],"main":"lib/index.js","scripts":{"test":"","install":"node-gyp rebuild"},"homepage":"http://github.com/brettlangdon/nodelua.git","repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"contributors":[{"name":"York Gu","email":"gyq5319920@gmail.com","url":"http://blog.yorkgu.me"}],"license":"MIT","gypfile":true,"engines":{"node":">=0.10.0"},"engineStrict":true,"bugs":{"url":"https://github.com/brettlangdon/nodelua/issues"},"_id":"nodelua@0.3.3","dist":{"shasum":"e86f56195d877a46f33bcac5885c128e36b3e348","tarball":"https://registry.npmjs.org/nodelua/-/nodelua-0.3.3.tgz","integrity":"sha512-kulgp/aLM19R655SvdyMA2X7FpTERb5q3F+km2wv7FiqIMWOZWNB7ZK4wHiqkZPiUHwVNm0CW5J+0ks/NYyUHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGRLOeIaiSOQMDTHqgDLkvRrU6yuiL81rURzl2LBN7GAiARTkDEE07e3fxrteMrlFKhdwt/OqjB5W94g3lRJQTyfQ=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"brett_langdon","email":"brett@blangdon.com"},"maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}]}},"readme":"NodeLua\n======\n\nNodeLua is a module to expose Lua bindings to Node.JS.\n\nThis is still a work in progress, collaborators welcome.\n\n## Install\n\nRequires Lua 5.1, will *not* work with 5.2\n\nLua and it's C libraries are required for this module to work.\n\n```bash\nnpm install nodelua\n```\n\n```javascript\nvar nodelua = require('nodelua');\n```\n\n### Environment Variables\nThese two environment variables should really only be used when there are installation problems\n\n* `NODELUA_INCLUDE` - additional directory to search for lua.h in. example: `NODELUA_INCLUDE=/opt/lua`\n* `NODELUA_FLAGS` - additional library flags to use. example: `NODELUA_FLAGS=-llua5.1`\n\n## Installation Problems\nTo try and narrow down where the error is coming from try running the following commands:\n```bash\n$ find /usr/include /usr/local/include -name lua.h | sed s/lua.h//\n/usr/include/lua5.1/\n$ pkg-config --libs-only-l --silence-errors lua || pkg-config --libs-only-l --silence-errors lua5.1\n-llua5.1\n```\n\nIf instead they show nothing or an error then there are a few possible explanations:\n\n* Lua Libraries are not installed\n * This can be remedied with something like `[sudo] apt-get install liblua5.1-dev`\n* Lua Libraries are not in an expected location `/usr/include/` or `/usr/local/include`\n * This can be solved by setting install time environment variables `NODELUA_INCLUDE` and `NODELUA_FLAGS`\n * `NODELUA_INCLUDE=\"/path/where/lua.h/is/\" NODELUA_FLAGS=\"-llua5.1\" npm install nodelua`\n\n\n## API\n### NodeLua\nThe `NodeLua` module itself contains the object `LuaState` as well as some constants.\n```javascript\nvar lua = new nodelua.LuaState('lua')\n```\n\n#### -- STATUS\n`STATUS` is an object that contains the constants for values returned by `LuaState.status()` or `LuaState.statusSync()`.\n\n`nodelua.STATUS` conatins the following constants:\n * `YIELD: 1`\n * `ERRRUN: 2`\n * `ERRSYNTAX: 3`\n * `ERRMEM: 4`\n * `ERRERR: 5`\n\n#### -- GC\n`GC` is an object of constants used for controlling the lua garbage collector.\n\n`nodelua.GC` conatins the following constants:\n * `STOP: 0`\n * `RESTART: 1`\n * `COLLECT: 2`\n * `COUNT: 3`\n * `COUNTB: 4`\n * `STEP: 5`\n * `SETPAUSE: 6`\n * `SETSTEPMUL: 7`\n\n#### -- INFO\n`INFO` is an object containing constants with information about the version of lua you are using.\n\n`nodelua.INFO` contains the following constants:\n * `VERSION`\n * `VERSION_NUM`\n * `COPYRIGHT`\n * `AUTHORS`\n\n### LuaState\nThe `LuaState` is an object wrapper around a `lua_State` instance.\n\n#### -- new LuaState(name)\nWhen creating a new `LuaState` you must provide it with a name, this is to help stop conflicts between registering functions.\nYou should provide unique names to each `LuaState` instance.\n\n#### -- getName()\nReturns the name provided when creating creating the `LuaState`\n\n#### -- doFile(file_name, callback)\nThe `doFile` method is used to load and execute lua code stored in `file_name`.\n```javascript\nlua.doFile('test.lua', function(error, ret_value){\n    if(!error && ret_value){\n      console.dir(ret_value);\n    } else{\n      console.error(error);\n    }\n  });\n```\n\n#### -- doFileSync(file_name)\nThis is the synchronous version of `doFile`, any value returned from the script is returned.\n```javascript\nvar ret_value = lua.doFileSync('test.lua');\nconsole.dir(ret_value);\n```\n\n#### -- doString(lua_code, callback)\nThe `doString` method is the same as `doFile` except the code is loaded from `lua_code` rather than from a file.\n```javascript\nlua.doString(\"print('Hello, Lua')\", function(error, ret_value){\n    if(!error && ret_value){\n      console.dir(ret_value);\n    } else{\n      console.error(error);\n    }\n  });\n```\n\n####  -- doStringSync(lua_code)\nThis is the synchronous version of `doString`, any value returned from the script is returned.\n```javascript\nvar ret_value = lua.doString(\"return 5\");\nconsole.dir(ret_value);\n```\n\n#### -- setGlobal(name, value)\nThe `setGlobal` method is used to provide lua with the global variable `name` containing the value `value`.\n```javascript\nlua.setGlobal('test', 'value');\n```\n\n#### -- getGlobal(name)\nThe `getGlobal` method is used to retrieve either a value set by `setGlobal` or a global variable in any lua code that has been run.\n```javascript\nconsole.log(lua.getGlobal('test'));\n```\n\n#### -- registerFunction(name, func)\n`registerFunction` is used to expose a javascript function to lua.\n```javascript\nlua.registerFunction('add_them', function(a, b){\n  return a + b;\n});\nvar ret_value = lua.doStringSync('return add_them(2, 4)');\nconsole.dir(ret_value);\n```\n\n#### -- status(callback)\n`status` will return the current status code for lua. The result can be `0` for normal or one of the error codes in `nodelua.STATUS`.\n```javascript\nlua.status(function(code){\n    if(code == nodelua.STATUS.ERRSYNTAX){\n      console.error('Lua Syntax Error');\n    }\n  });\n```\n\n#### -- statusSync()\nThis is the synchronous version of `status`\n```javascript\nvar code = lua.statusSync();\nconsole.dir(code);\n```\n\n#### -- collectGarbage(GC_CODE, callback)\n`collectGarbage` is used to control the lua garbage collector. `GC_CODE` should be one of the codes taken from `nodelua.GC`.\n```javascript\nlua.collectGarbage(nodelua.GC.COLLECT, function(code){\n    console.dir(code);\n  });\n```\n\n#### -- collectGarbageSync(GC_CODE)\nThis is the synchronous version of `collectGarbage`.\n```javascript\nvar code = lua.collectGarbageSync(nodelua.GC.COLLECT);\nconsole.dir(code);\n```\n\n#### -- push(value)\nPush `value` onto the Lua stack.\n```javascript\nlua.push(5);\n```\n\n#### -- pop(num)\nPop `num` items from the stack. Default is 1.\n```javascript\nlua.pop(5);\n```\n\n#### -- getTop()\nReturn the number of elements on the Lua stack.\n```javascript\nvar num = lua.getTop();\n```\n\n#### -- setTop(index)\nSet the top of the Lua stack to `index`.\n```javascript\nlua.setTop(3);\n```\n\n#### -- replace(index)\nReplaces the top stack element into the specified `index`\n```javascript\nlua.replace(3);\n```\n\n#### -- close()\n`close` should be used whenever you have finished using a `LuaState`. This will simply call `lua_close` on the `lua_State` for that object.\n\n## Example\nSee `./examples/`.\n```javascript\nvar nodelua = require('nodelua');\nvar lua = new nodelua.LuaState('example');\n\nlua.registerFunction('add_them', function(a, b){\n  return a + b;\n});\n\nlua.doFile('some_file.lua', function(error, ret_value){\n    console.dir(lua.getGlobal('some_var'));\n  });\n```\n\n## License\nThe MIT License (MIT)\nCopyright (c) 2012 Brett Langdon <brett@blangdon.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"brett_langdon","email":"brett@blangdon.com"}],"time":{"modified":"2022-06-22T03:00:14.452Z","created":"2012-11-24T21:13:01.493Z","0.1.0":"2012-11-24T21:13:02.431Z","0.1.1":"2012-11-25T16:37:58.937Z","0.1.3":"2012-11-25T23:16:39.824Z","0.1.4":"2012-11-26T04:12:11.167Z","0.1.5":"2012-12-20T02:13:26.540Z","0.1.6":"2012-12-20T03:07:15.257Z","0.2.0":"2013-01-02T00:08:51.928Z","0.1.7":"2013-01-02T00:07:11.882Z","0.2.1":"2013-01-07T19:31:24.911Z","0.2.2":"2013-04-23T00:11:50.721Z","0.2.3":"2013-08-19T11:31:12.761Z","0.3.0":"2013-08-19T11:41:04.811Z","0.3.1":"2013-10-17T17:52:00.252Z","0.3.2":"2014-01-05T23:49:04.598Z","0.3.3":"2014-01-22T14:38:11.913Z"},"author":{"name":"Brett Langdon","email":"brett@blangdon.com","url":"http://www.brett.is"},"repository":{"type":"git","url":"git://github.com/brettlangdon/nodelua.git"},"readmeFilename":"README.md","users":{"greyyang":true,"shanewholloway":true,"jmervine":true,"nuwaio":true}}