node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

osconfig

osconfig

Build Status

Read config files with OS specific installation instructions for use with nput

Installation:

npm install osconfig

Usage:

var osconfig = require('osconfig')

Methods:

.list()

Reads a config file and synchronously returns an object of included operating systems & versions with filenames.

Example:

.list('./os')

.load()

Synchronously return an object containing the parameters of the specified osconfig file.

Example:

.load({
  os: 'debian',
  version: '6.0',
  dir: './configs' //optional, defaults to './os' 
})

License

MIT