New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-osquery

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-osquery

`node-osquery` is a 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.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

node-osquery

node-osquery is a module that provides a convenient interface for interacting with OSQuery. This allows for easy access to system data exposed by OSQuery, all within a JavaScript environment.

Badge Branches Badge Functions Badge Lines Badge Statements

Prerequisites

To use node-osquery, you must have OSQuery 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.

Installation

You can install this module via npm using the following command:

npm install --save node-osquery

or using yarn:

yarn add node-osquery

Usage

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);
};

main().catch(console.error);

getWifiSurvey().then((data) => {
    console.log(data);
});

Test

To run the test suite, execute the following command:

yarn test

Contributing

I appreciate your contributions! Please feel free to submit a pull request or open an issue on the repository.

License

This project is licensed under the MIT License.

Keywords

osquery

FAQs

Package last updated on 27 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts