Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions node-native/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# N-API cuckoosync


To build and run this program on your system, clone it to your computer and run these two commands inside your clone:

```
npm install
npm test
```

> You need to have Node 10.5.0 or later installed.
20 changes: 20 additions & 0 deletions node-native/binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
'targets': [
{
'target_name': 'cuckoosync',
'sources': [ 'src/bitsutil.h, cuckoofilter.h, debug.h, hashutil.cc, hashutil.h, packedtable.h, permencoding.h, printutil.cc, printutil.h, simd-block.h, singletable.h' ],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
},
'msvs_settings': {
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
}
}
]
}
11 changes: 11 additions & 0 deletions node-native/lib/binding.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var addon = require('addon');

function cuckoosync(name) {
this.greet = function(str) {
return _addonInstance.greet(str);
}

var _addonInstance = new addon.cuckoosync(name);
}

module.exports = cuckoosync;
13 changes: 13 additions & 0 deletions node-native/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions node-native/node_modules/node-addon-api/.editorconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions node-native/node_modules/node-addon-api/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

325 changes: 325 additions & 0 deletions node-native/node_modules/node-addon-api/CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions node-native/node_modules/node-addon-api/CODE_OF_CONDUCT.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions node-native/node_modules/node-addon-api/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions node-native/node_modules/node-addon-api/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading