Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huandu/node-facter
A wrapper for puppet `facter` tool
https://github.com/huandu/node-facter
Last synced: 29 days ago
JSON representation
A wrapper for puppet `facter` tool
- Host: GitHub
- URL: https://github.com/huandu/node-facter
- Owner: huandu
- License: mit
- Created: 2015-05-08T15:29:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-05T06:18:07.000Z (over 8 years ago)
- Last Synced: 2024-10-03T03:28:51.426Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# facter - A wrapper for puppet `facter` tool #
[Facter](https://puppetlabs.com/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.
```javascript
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.