0.8.7 • Published 10 months ago

@nordicsemiconductor/nrf-monitor-lib-js v0.8.7

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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

Notes (Q/A):

Q: I see no output of the console.log() in the CI A: Possible solution would be to add spyOn(console, 'log').and.callThrough(); in beforeAll() -- from stackoverflow

Q: I want to add tab in the test logging A: Add \t at the start of console.warn('\t', message);

Q: How can I conditionally skip a test? A: You can use xit instead if it for running the test callback. See https://jasmine.github.io/api/4.6/global.html#xit for more info.

0.8.7

10 months ago

0.8.6

1 year ago

0.8.5

1 year ago

0.8.1-pre

2 years ago

0.8.4

2 years ago

0.8.1

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.8.0-pre6

2 years ago

0.8.0-pre5

2 years ago

0.8.0-pre4

2 years ago

0.8.0-pre3

2 years ago

0.8.0-pre2

2 years ago

0.8.0-pre

2 years ago

0.7.6

3 years ago

0.7.5

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.4

3 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.18

4 years ago

0.5.17

4 years ago

0.5.16

4 years ago

0.5.15

4 years ago

0.5.14

4 years ago