35a9c261b7 | ||
---|---|---|
.travis | ||
bin | ||
src | ||
test | ||
tools/go2nodebinding | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
LICENSE.md | ||
README.md | ||
binding.gyp | ||
index.js | ||
package-lock.json | ||
package.json |
README.md
status-nodejs
This project is in pre-alpha version!
This package provides wrappers to status-go bindings.
Instalation
Only manual installation from the repository.
Development
First, you need to get libstatus.a
:
- Clone status-go repository into proper directory in
$GOPATH
, - Run
make statusgo-library
, - Copy
libstatus.a
andlibstatus.h
from/path/to/status-go/build/bin/
to./bin/
.
Next, run npm install
to build a node.js addon. After that, you should be able to successfully run tests npm test
.
Autogenerate bindings from Go code
It's possible to autogenerate C++ code from status-go bindings. First, build autogenerator tool:
go build ./tools/go2nodebinding
then, run it:
./go2nodebinding /path/to/status-go/lib/library.go > ./src/status.cpp