'use strict';

var path = require('path');
var fs = require('fs');

module.exports = function readConfig(file) {
    var content = fs.readFileSync(
        path.join(
            __dirname,
            'node_modules',
            'vgno-coding-standards',
            file
        ),
        'utf8'
    );

    return JSON.parse(content);
};

'use strict';

var fs = require('fs');

module.exports = function readConfig(file) {
    var content = fs.readFileSync(
        require.resolve('vgno-coding-standards/' + file),
        'utf8'
    );

    return JSON.parse(content);
};

Use node's resolve mechanism when attempting to locate vgno-coding-standard (npm3 fix)
Use node's resolve mechanism when attempting to locate vgno-coding-standard (npm3 fix)
