mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
|
|
var fs = require('fs');
|
|
var config = undefined;
|
|
|
|
console.log(process.env.npm_lifecycle_script)
|
|
|
|
// Check to see if launched in test mode
|
|
if (process.env.npm_lifecycle_script === 'node test.js') {
|
|
config = JSON.parse(fs.readFileSync('test.json'));
|
|
} else {
|
|
config = JSON.parse(fs.readFileSync('config.json'));
|
|
}
|
|
|
|
module.exports = config; |