facter
v0.1.1
Published
A wrapper for puppet `facter` tool.
Downloads
9
Readme
facter - A wrapper for puppet facter
tool
Facter is a command line tool to gather information about a system. This node module is to wrap calls to facter
command and return results as a javascript object.
It's very straight forward to use this module.
var facter = require("facter");
// Get one fact.
facter.query("fqdn", function(err, facts) {
console.log(facts.fqdn);
});
// Get a list of facts.
facter.query(["ipaddress", "fqdn"], function(err, facts) {
console.log(facts.ipaddress);
console.log(facts.fqdn);
});
Install
Install this module through npm
.
npm install --save facter
License
This module is licensed under the MIT license that can be found in the LICENSE file.