An open API service indexing awesome lists of open source software.

https://github.com/chadxz/neon-thread-count-example

Example of using Neon to create a native Rust addon for Node.js. The result of working through the hello world walkthrough at https://neon-bindings.com/docs/hello-world
https://github.com/chadxz/neon-thread-count-example

Last synced: 3 months ago
JSON representation

Example of using Neon to create a native Rust addon for Node.js. The result of working through the hello world walkthrough at https://neon-bindings.com/docs/hello-world

Awesome Lists containing this project

README

        

# thread-count

Example node.js library using a native Rust addon. This code is the result of
following the hello world guide on the [Neon website].

[Neon website]: https://neon-bindings.com/docs/hello-world

```
~/src/thread-count $ node
Welcome to Node.js v14.16.0.
Type ".help" for more information.
> const threadCount = require('.');
undefined
> threadCount();
8
```