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
- Host: GitHub
- URL: https://github.com/chadxz/neon-thread-count-example
- Owner: chadxz
- Created: 2021-03-26T04:54:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T04:54:24.000Z (about 4 years ago)
- Last Synced: 2025-01-23T22:18:26.621Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```