# Genius Core SDK Node ## Development In the Rust source, we are exposing some functions to NodeJs through the `node.rs` file The `NativeGeniusCoreClient` is a Rust wrapper around the real `Client`. It allows us to implement JS facing functions that call into the Core code. Further, non-client class functions (`make_swid`) can be exposed directly, without passing through the Client. ## Example Usage ```js const { makeSwid, GeniusCoreClient } = require('./index') async function main() { console.info(makeSwid("mynewswid")) const gc = await GeniusCoreClient.newWithOauth2Token( 'HTTPS', 'GENIUS_CORE_URL', '443', 'MY_TOKEN', 30, 3); console.log(await gc.query('#entity')); } main(); ``` See [NAPI-RS documentation](https://napi.rs/docs/introduction/getting-started) for more examples. ## Build To build the JS output, run: `npm run build` in the project root