All Projects → storj-thirdparty → uplink-nodejs

storj-thirdparty / uplink-nodejs

Licence: Apache-2.0 License
NodeJS / typescript bindings for libuplink

Programming Languages

C++
36643 projects - #6 most used programming language
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to uplink-nodejs

powerapps-specflow-bindings
A SpecFlow bindings library for model-driven Power Apps.
Stars: ✭ 19 (-5%)
Mutual labels:  bindings
zydis-py
Zydis Python Bindings (Work In Progress)
Stars: ✭ 21 (+5%)
Mutual labels:  bindings
webviewhs
🌐 A Haskell binding to the webview library created by Serge Zaitsev.
Stars: ✭ 109 (+445%)
Mutual labels:  bindings
libsodium-sys-stable
Sodiumoxide's libsodium-sys crate, but that installs stable versions of libsodium.
Stars: ✭ 16 (-20%)
Mutual labels:  bindings
deltachat-node
Email-based instant messaging for Node.js.
Stars: ✭ 46 (+130%)
Mutual labels:  bindings
simplesquirrel
Yet another simple binding in C++11 for Squirrel scripting language
Stars: ✭ 37 (+85%)
Mutual labels:  bindings
bottomnavigationviewex-android-binding
Xamarin.Android Binding Library for Ittianyu BottomNavigationViewEx
Stars: ✭ 25 (+25%)
Mutual labels:  bindings
rust-lang-interop
Rust language interoperability with other languages - C, C++ etc.
Stars: ✭ 53 (+165%)
Mutual labels:  bindings
Xamarin.iOS.DatePickerDialog
Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift
Stars: ✭ 24 (+20%)
Mutual labels:  bindings
pmod
Native cross platform library with language projection support for native code.
Stars: ✭ 22 (+10%)
Mutual labels:  bindings
react-use-redux
Alternative Redux bindings with upcoming React hooks
Stars: ✭ 31 (+55%)
Mutual labels:  bindings
discord-game-sdk4j
Java bindings for Discord's Game SDK
Stars: ✭ 45 (+125%)
Mutual labels:  bindings
webview
Nim bindings for https://github.com/zserge/webview
Stars: ✭ 91 (+355%)
Mutual labels:  bindings
janetrs
Rust high level bindings for Janet
Stars: ✭ 36 (+80%)
Mutual labels:  bindings
directx-d
[DISCONTINUED] DirectX bindings for D
Stars: ✭ 19 (-5%)
Mutual labels:  bindings
godopy
[WIP] Python scripting for the Godot game engine
Stars: ✭ 27 (+35%)
Mutual labels:  bindings
TypeScriptXX
🧷 Stay safe! Type-safe scripting for C++ using TypeScriptToLua and CMake with auto-generated declarations.
Stars: ✭ 33 (+65%)
Mutual labels:  bindings
lz4-napi
Fastest lz4 compression library in Node.js, powered by napi-rs and lz4-flex.
Stars: ✭ 29 (+45%)
Mutual labels:  bindings
vsphere-automation-sdk-rest
REST (Postman and JavaScript) samples and API reference documentation for vSphere using the VMware REST API
Stars: ✭ 194 (+870%)
Mutual labels:  bindings
vulkan
Vulkan bindings for Nim
Stars: ✭ 15 (-25%)
Mutual labels:  bindings

uplink-nodejs binding

Codacy Badge

Developed using v1.2.2 storj/uplink-c

API documentation and tutorial

Initial Set-up (Important)

For Golang

  • Make sure your PATH includes the $GOPATH/bin directory, so that your commands can be easily used Refer: Install the Go Tools:

    export PATH=$PATH:$GOPATH/bin
    
  • Install node-gyp globally

$ npm install -g node-gyp
  • Install the storj-nodejs Node.js package
$ npm install uplink-nodejs
  • Set Environment variable
    • MacOS
      • Set DYLD_LIBRARY_PATH environment variable
        • Run following command inside root directory of your project
          export  DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/node_modules/uplink-nodejs/
          
        OR
      • Copy libuplinkc*.* files from $PROJECTROOT/node_modules/uplink-nodejs/ to /usr/local/lib
    • Linux
      • Set LD_LIBRARY_PATH environment variable
        • Run following command inside root directory of your project
          export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/uplink-nodejs/
          
        OR
      • Copy libuplinkc*.* files from $PROJECTROOT/node_modules/uplink-nodejs/ to /usr/lib
    • Windows
      • Set Path environment variable to libuplinkc*.* which is $PROJECTROOT/node_modules/uplink-nodejs

For NodeJS

  • Please ensure Node.js with version 10 or higher is installed
    • Check Node.js version
      $ node -v
      
  • please ensure make is already installed.
  • please ensure node-gyp dependencies is already installed.
  • please ensure @types/node dependencies is installed for running module in typescript.

Run Unit Test Cases on Local

Directory with unit test cases test can be found in the uplink-nodejs repository.

To run the test cases on a local system, you need to perform the following steps:

  • clone the repo so that you have the test folder on your local system.

      directory_on_local
      └── test
    
  • Add a test file parallel to the tests folder, add API Key in the file, and name it as secret.txt. The directory structure would be something like this now:

      directory_on_local
      └── secret.txt
      └── test
          └── testcase.ts
    
  • Navigate to the folder, here directory_on_local and use the following command to run through all the tests.

        $ npm test

Documentation

For more information on function definations and diagrams, check out the Detail or jump to:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].