{"id":16872317,"url":"https://github.com/mtrnord/node-yara-rs","last_synced_at":"2025-04-05T11:42:37.812Z","repository":{"id":197443173,"uuid":"698627994","full_name":"MTRNord/node-yara-rs","owner":"MTRNord","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-11T12:09:22.000Z","size":1044,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T23:12:54.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MTRNord.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-30T13:37:06.000Z","updated_at":"2023-10-26T22:53:40.000Z","dependencies_parsed_at":"2023-10-14T15:22:42.802Z","dependency_job_id":"5364b107-8cde-42bb-9a0d-9b4ca765e091","html_url":"https://github.com/MTRNord/node-yara-rs","commit_stats":null,"previous_names":["mtrnord/node-yara-rs"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTRNord%2Fnode-yara-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTRNord%2Fnode-yara-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTRNord%2Fnode-yara-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MTRNord%2Fnode-yara-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MTRNord","download_url":"https://codeload.github.com/MTRNord/node-yara-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332524,"owners_count":20921852,"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-10-13T15:14:17.266Z","updated_at":"2025-04-05T11:42:37.781Z","avatar_url":"https://github.com/MTRNord.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-yara-rs\n\nNode-yara-rs is a node module binding for the [yara-rs](https://github.com/Hugal31/yara-rust/) library which in turn does bind to [libyara](https://github.com/VirusTotal/yara).\n\n## Installation\n\nYou can install this with npm or yarn as usual:\n\n```bash\nnpm install --save @node_yara_rs/node-yara-rs\n```\n\n## Usage\n\n```typescript\n// Import the package\nimport { YaraCompiler } from '@node_yara_rs/node-yara-rs'\n\n// Load your rules as a string or filepaths\n\n// Create a new compiler which loads a rule (checkout the typings for more details)\nconst compiler = new YaraCompiler([{\n    string: TEST_RULE\n}], []);\n\n// Get a scanner which is used to then scan data\nconst scanner = compiler.newScanner();\n\n// Scan some string\nconst result = scanner.scanString(\"test\");\n```\n\nNote that most functions here are able to throw if anything fails. Handle these as needed.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[Apache-2.0](https://choosealicense.com/licenses/apache-2.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrnord%2Fnode-yara-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtrnord%2Fnode-yara-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrnord%2Fnode-yara-rs/lists"}