Comparing version 1.0.64 to 1.0.65
var Config = module.exports = function (fileName) { | ||
function loadConfig() { | ||
var fs = require('fs'); | ||
var Path = require('path'); | ||
var fileParts = Path.parse(fileName); | ||
var configFileName = Path.join(fileParts.dir, fileParts.name) + '.json'; | ||
var json = {}; | ||
try { | ||
console.log('Reading file', configFileName); | ||
json = JSON.parse(fs.readFileSync(configFileName)); | ||
json = JSON.parse(fs.readFileSync('.config')); | ||
} | ||
catch(error) { | ||
json = {error:error.message}; | ||
console.error(error); | ||
} | ||
@@ -23,1 +16,3 @@ | ||
} | ||
var config = module.exports = loadConfig(); |
{ | ||
"name": "yow", | ||
"version": "1.0.64", | ||
"version": "1.0.65", | ||
"description": "You Only Wish module", | ||
@@ -5,0 +5,0 @@ "main": "yow.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
16693
414