rsyslog / liblognorm

a fast samples-based log normalization library
http://www.liblognorm.com
GNU Lesser General Public License v2.1
99 stars 64 forks source link

Question: Node.js binding for liblognorm #112

Open megastef opened 9 years ago

megastef commented 9 years ago

Hi,

do you know any npm package for a native binding of liblognorm for Node.js? Are there any plans for it, e.g. using https://github.com/node-ffi/node-ffi or https://github.com/tjfontaine/node-ffi-generate ? It would be cool if your team could support it - knowing the library interface best. Actually I don't know where to start.

Stefan

rgerhards commented 9 years ago

Unfortunately, I don't know of any such binding and even more unfortunately I don't even know where to start creating one. So if you would be up for this, we could talk you through the API. Note, however, that I am currently doing a major rewrite with plans to release around September. So it would make immense sense to wait for that release.

otisg commented 8 years ago

+10 for this, it would be great to have this!

rgerhards commented 8 years ago

Full ack, looking forward to a PR.

megastef commented 8 years ago

Maybe 'Swig' is helpful see: https://stackoverflow.com/questions/9629677/how-can-i-use-a-c-library-from-node-js http://www.swig.org/Doc3.0/Javascript.html#Javascript_overview

megastef commented 6 years ago

One more update on tools, which make node binding to C libraries easier: https://github.com/charto/nbind