ohai-data

0.1.0 • Public • Published

ohai-data

About

Description

ohai-data returns data detected from running ohai

Author

ContainerShip Developers - developers@containership.io

Getting Started

Adding ohai-data as a dependency

npm install ohai-data --save

How do I use ohai-data?

var ohai = require("ohai-data");
 
ohai.detect(function(err, data){
    if(err)
        throw err;
 
    console.log(data);
});
 

It's that simple!

ohai-data can't find my ohai executable

If ohai isn't in your PATH, specify the path to the executable as follows:

var ohai = require("ohai-data");
 
ohai.detect({ executable: "/path/to/ohai" }, function(err, data){
    if(err)
        throw err;
 
    console.log(data);
});
 

Contributing

Pull requests and issues are encouraged!

/ohai-data/

    Package Sidebar

    Install

    npm i ohai-data

    Weekly Downloads

    11

    Version

    0.1.0

    License

    GPL-3.0

    Last publish

    Collaborators

    • normanjoyner