Skip to content

karczex/pmemkv-nodejs

 
 

Repository files navigation

pmemkv-nodejs

Node.js bindings for pmemkv

The current API is simplified and not functionally equal to its native C/C++ counterpart. In the future existing API may be extended in idiomatic way without preserving backward compatibility. All known issues and limitations are logged as GitHub issues.

Dependencies

Installation

Start by installing pmemkv on your system.

Clone the pmemkv-nodejs tree:

git clone https://github.com/pmem/pmemkv-nodejs.git
cd pmemkv-nodejs

Add npm modules to your project (install the dependencies listed in package.json in the local node_modules folder):

npm install

Testing

This library includes a set of automated tests that exercise all functionality.

LD_LIBRARY_PATH=path_to_your_libs npm test

Example

We are using /dev/shm to emulate persistent memory in example.

Example can be found within this repository in examples directory. To execute the example:

PMEM_IS_PMEM_FORCE=1 node basic_example.js

About

NodeJS bindings for pmemkv

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 36.9%
  • C++ 31.6%
  • JavaScript 30.8%
  • Python 0.7%