1.1.0 • Published 7 years ago
protodefc-prebuilt v1.1.0
protodefc-prebuilt
Automatic protodefc builds for multiple platforms (for use with a FFI)
Usage
Note: ProtoDefc only supports JavaScript and expirimental Python at the moment
With whatever language you use to call these (go to the releases), just load download the binary for your system and load it
JavaScript:
var compile = require('protodefc-prebuilt');
var javascript_output = compile('your_pds_contents')
Ruby:
require 'ffi'
module ProtoDefc
extend FFI::Library
ffi_lib 'protodefc'
attach_function :compile, [ :string ], :string
end
javascript_output = ProtoDefc.compile('your_pds_contents')