Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Kc committed Jul 26, 2023
1 parent 2cc489f commit 6ab26f7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
![Badge Lines](./coverage/badge-lines.svg)
![Badge Statements](./coverage/badge-statements.svg)

This is a Node.js module providing convenient access to OSQuery data.
`node-osquery` is a Node.js module that provides a convenient interface for interacting with [OSQuery](https://osquery.io/). This allows for easy access to system data exposed by OSQuery, all within a JavaScript environment.

## Prerequisites

To use `node-osquery`, you must have [OSQuery](https://osquery.io/) installed on your system. OSQuery exposes an operating system as a high-performance relational database, and this module provides methods to interact with that data. To install OSQuery and learn more about its capabilities, please refer to the [official OSQuery documentation](https://osquery.readthedocs.io/en/stable/).

## Installation

Expand All @@ -29,21 +33,26 @@ You can import and use the methods provided by this package as follows:
const { runOSQuery } = require('node-osquery');
// OR with ES6 import
import { runOSQuery } from 'node-osquery';
import { getWifiSurvey } from 'node-osquery';
const main = async () => {
const result = await runOSQuery('select * from users');
console.log(result);
console.log(result);
};
main().catch(console.error);
getWifiSurvey().then((data) => {
console.log(data);
});
```

## Test

To run the test suite, execute the following command:

`
npm test
yarn test
`

## Contributing
Expand Down

0 comments on commit 6ab26f7

Please sign in to comment.