{"id":22752019,"url":"https://github.com/aandreba/node-timesync","last_synced_at":"2025-06-14T12:08:22.478Z","repository":{"id":234487516,"uuid":"678370222","full_name":"Aandreba/node-timesync","owner":"Aandreba","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-14T11:54:01.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T12:08:15.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aandreba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-14T11:53:59.000Z","updated_at":"2023-08-14T11:54:05.000Z","dependencies_parsed_at":"2024-04-19T15:27:37.427Z","dependency_job_id":"658d4119-f036-4054-8fda-1af2446ebdd9","html_url":"https://github.com/Aandreba/node-timesync","commit_stats":null,"previous_names":["aandreba/node-timesync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aandreba/node-timesync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aandreba%2Fnode-timesync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aandreba%2Fnode-timesync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aandreba%2Fnode-timesync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aandreba%2Fnode-timesync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aandreba","download_url":"https://codeload.github.com/Aandreba/node-timesync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aandreba%2Fnode-timesync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259813015,"owners_count":22915200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-11T05:09:20.493Z","updated_at":"2025-06-14T12:08:22.456Z","avatar_url":"https://github.com/Aandreba.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timesync\n\nThis project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).\n\n## Installing timesync\n\nInstalling timesync requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).\n\nYou can install the project with npm. In the project directory, run:\n\n```sh\n$ npm install\n```\n\nThis fully installs the project, including installing any dependencies and running the build.\n\n## Building timesync\n\nIf you have already installed the project and only want to run the build, run:\n\n```sh\n$ npm run build\n```\n\nThis command uses the [cargo-cp-artifact](https://github.com/neon-bindings/cargo-cp-artifact) utility to run the Rust build and copy the built library into `./index.node`.\n\n## Exploring timesync\n\nAfter building timesync, you can explore its exports at the Node REPL:\n\n```sh\n$ npm install\n$ node\n\u003e require('.').hello()\n\"hello node\"\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm install`\n\nInstalls the project, including running `npm run build`.\n\n### `npm build`\n\nBuilds the Node addon (`index.node`) from source.\n\nAdditional [`cargo build`](https://doc.rust-lang.org/cargo/commands/cargo-build.html) arguments may be passed to `npm build` and `npm build-*` commands. For example, to enable a [cargo feature](https://doc.rust-lang.org/cargo/reference/features.html):\n\n```\nnpm run build -- --feature=beetle\n```\n\n#### `npm build-debug`\n\nAlias for `npm build`.\n\n#### `npm build-release`\n\nSame as [`npm build`](#npm-build) but, builds the module with the [`release`](https://doc.rust-lang.org/cargo/reference/profiles.html#release) profile. Release builds will compile slower, but run faster.\n\n### `npm test`\n\nRuns the unit tests by calling `cargo test`. You can learn more about [adding tests to your Rust code](https://doc.rust-lang.org/book/ch11-01-writing-tests.html) from the [Rust book](https://doc.rust-lang.org/book/).\n\n## Project Layout\n\nThe directory structure of this project is:\n\n```\ntimesync/\n├── Cargo.toml\n├── README.md\n├── index.node\n├── package.json\n├── src/\n|   └── lib.rs\n└── target/\n```\n\n### Cargo.toml\n\nThe Cargo [manifest file](https://doc.rust-lang.org/cargo/reference/manifest.html), which informs the `cargo` command.\n\n### README.md\n\nThis file.\n\n### index.node\n\nThe Node addon—i.e., a binary Node module—generated by building the project. This is the main module for this package, as dictated by the `\"main\"` key in `package.json`.\n\nUnder the hood, a [Node addon](https://nodejs.org/api/addons.html) is a [dynamically-linked shared object](https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries). The `\"build\"` script produces this file by copying it from within the `target/` directory, which is where the Rust build produces the shared object.\n\n### package.json\n\nThe npm [manifest file](https://docs.npmjs.com/cli/v7/configuring-npm/package-json), which informs the `npm` command.\n\n### src/\n\nThe directory tree containing the Rust source code for the project.\n\n### src/lib.rs\n\nThe Rust library's main module.\n\n### target/\n\nBinary artifacts generated by the Rust build.\n\n## Learn More\n\nTo learn more about Neon, see the [Neon documentation](https://neon-bindings.com).\n\nTo learn more about Rust, see the [Rust documentation](https://www.rust-lang.org).\n\nTo learn more about Node, see the [Node documentation](https://nodejs.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faandreba%2Fnode-timesync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faandreba%2Fnode-timesync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faandreba%2Fnode-timesync/lists"}