var path = require('path'),
    config = require('nconf'),
    SnapshotCleaner = require('./lib/cleaner');

config.env();
config.add('config', {
    type: 'file',
    file: path.resolve(__dirname, './config/_config.json')
});

var sc = new SnapshotCleaner();
sc.start();

var fsExtra = require('fs-extra'),
    SnapshotCleaner = require('./lib/cleaner');

fsExtra.readJSON('./config/config.json', function (error, config) {
    if (error) {
        throw error;
    }
    var sc = new SnapshotCleaner(config);
    sc.start();
});

Replace complex nconf usage to simple open and parse json configuration file via fsExtra module
Replace complex nconf usage to simple open and parse json configuration file via fsExtra module
