A helper for writing custom godot producers
Want to see pretty graphs? Log in now!
npm install godot-producer
|4||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated 10 months ago|
|Dependencies||xtend, ip, node-uuid|
|Dependents (6)||godot-elasticsearch, godot-haproxy, godot-log-producer, godot-npm-publish-producer, godot-redis, mmalecki|
This is a library for creating third-party godot producers without too much rigamarole. It vendors the 'producer' library to keep the dependency tree down.
var ProducerStream = godotProducer(ctor, produce);
ctor is called inside the returned constructor with
this being contextualized
as your instantiated producer.
produce is called when the "produce" method is
called. Emit is monkey punched so that default production values are added
automatically. ProducerStream has the added bonus of the ol'
"if (!(this instanceof ProducerStream))" trick so you don't have to call it with
the 'new' keyword (unless you want to).