Skip to content

huandu/node-facter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A wrapper for puppet `facter` tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published