osconfig

0.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i osconfig

    Weekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • luk