Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
/* does effectively this, but without all that fancy | |
* stream mumbo jumbo: | |
var net = require('net'); | |
var server = net.createServer(function(socket) { | |
socket.pipe(socket); | |
}); | |
server.listen(PORT, function() { |
data
events spewing, call read()
to pull data from source.read()
will return undefined.data
event listener will switch the Readable stream into "old mode", where data is emitted as soon as it is available rather than waiting for you to call read()
to consume it. This requires you to handle backpressure problems manually.pipe
method helps write less code and handles back-pressure.end
listener and don't ever read()
or pipe()
, it'll never emit end
.-- Load Vue library | |
package.loadlib("https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js", "*") | |
-- Get Object helper | |
local Object = dofile("https://gist.githubusercontent.com/daurnimator/5a7fa933e96e14333962093322e0ff95/raw/8c6968be0111c7becc485a692162ad100e87d9c7/Object.lua").Object | |
local myapp = js.new(js.global.Vue, Object{ | |
el = "#foo"; | |
template = [[ | |
<div id="foo">{{message}}</div> | |
]]; |