@nordicsemiconductor/nrf-monitor-lib-js

JavaScript bindings for nrf-monitor-lib

Usage no npm install needed!

<script type="module">
  import nordicsemiconductorNrfMonitorLibJs from 'https://cdn.skypack.dev/@nordicsemiconductor/nrf-monitor-lib-js';
</script>

README

nRF Monitor Library Node.js Bindings

These are C++ bindings to the nrf-monitor-lib written using the N-API.

How to build

The following must be installed to build. See more detailed version information in YAML files for Azure.

  • CMake
  • (Mac only) LLVM (see version information in YAML files for Azure). Can be installed using brew.
  • (Linux only) gcc, libusb.
  • (Max and Linux only) Ninja. Can be installed in Mac using brew.
  • (Windows only) Microsoft Visual Studio Community.
  • Node.js/npm. Can be installed in Mac/Linux using nvm or in Windows using nvm-windows.

Install npm dependencies and run build script

The package.json takes care of installing the Node.js dependencies and running the build script.

  • npm i

Run tests

Jasmine is used as test framework. Either run:

  • npm test

or

  • jasmine