0.6.2 • Published 7 months ago

@node_yara_rs/node-yara-rs v0.6.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

Node-yara-rs

Node-yara-rs is a node module binding for the yara-rs library which in turn does bind to libyara.

Installation

You can install this with npm or yarn as usual:

npm install --save @node_yara_rs/node-yara-rs

Usage

// Import the package
import { YaraCompiler } from '@node_yara_rs/node-yara-rs'

// Load your rules as a string or filepaths

// Create a new compiler which loads a rule (checkout the typings for more details)
const compiler = new YaraCompiler([{
    string: TEST_RULE
}], []);

// Get a scanner which is used to then scan data
const scanner = compiler.newScanner();

// Scan some string
const result = scanner.scanString("test");

Note that most functions here are able to throw if anything fails. Handle these as needed.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache-2.0

0.6.2

7 months ago

0.6.1

7 months ago

0.5.1

8 months ago

0.5.0

8 months ago

0.4.0

8 months ago

0.3.0

8 months ago

0.2.1

8 months ago

0.1.0

8 months ago