Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function doLoadEnv(opts){
if( !process.env.NODE_ENV ){
process.env.NODE_ENV = "development";
}
dotenv._getKeysAndValuesFromEnvFilePath( opts.dotenvFile );
dotenv._getKeysAndValuesFromEnvFilePath( opts.dotenvFile + "." + process.env.NODE_ENV );
process.env.ENV_LOADED = process.env.NODE_ENV;
dotenv._setEnvs();
console.log( "[Konfy] loaded env variables for '" + process.env.NODE_ENV + "'" );
}
function doLoadEnv(opts){
if( !process.env.NODE_ENV ){
process.env.NODE_ENV = "development";
}
dotenv._getKeysAndValuesFromEnvFilePath( opts.dotenvFile );
dotenv._getKeysAndValuesFromEnvFilePath( opts.dotenvFile + "." + process.env.NODE_ENV );
process.env.ENV_LOADED = process.env.NODE_ENV;
dotenv._setEnvs();
console.log( "[Konfy] loaded env variables for '" + process.env.NODE_ENV + "'" );
}
#!/usr/bin/env node
var gif = require('aio_gif'),
dotenv = require('dotenv'),
path = require('path')
spawn = require('child_process').spawn;
var config = path.join(__dirname, '..', 'server.conf');
dotenv._getKeysAndValuesFromEnvFilePath(config);
dotenv._setEnvs();
var server = gif({
key: process.env.AIO_KEY.trim(),
feed: process.env.AIO_FEED.trim(),
port: process.env.HTTP_PORT
});
console.log('Starting HTTP server on http://localhost:%d', process.env.HTTP_PORT);
server.on('error', console.error.bind(this, 'GIF Server Error'));
server.on('image', function() {
spawn('/usr/bin/aio_gif', ['refresh']);
});
var dotenv = require('dotenv');
dotenv._getKeysAndValuesFromEnvFilePath('../.env');
dotenv._setEnvs();
var async = require('async');
var request = require('request');
var _ = require('lodash');
var bar = require('progress-bar').create(process.stdout);
var db = require('../models/db.js');
var Manga = db.Manga;
var fs = require('fs');
var errorLog = fs.WriteStream('./logs/scrapeManga-' + new Date().getTime() + '.log');
var getQ = async.queue(function(task, callback) {
request(task.url, function(err, res, body) {
if (err || res.statusCode === 404) {
var dotenv = require('dotenv');
dotenv._getKeysAndValuesFromEnvFilePath('../.env');
dotenv._setEnvs();
var async = require('async');
var request = require('request');
var _ = require('lodash');
var bar = require('progress-bar').create(process.stdout);
var db = require('../models/db.js');
var Anime = db.Anime;
var fs = require('fs');
var errorLog = fs.WriteStream('./logs/scrapeAnime-' + new Date().getTime() + '.log');
var getQ = async.queue(function(task, callback) {
request(task.url, function(err, res, body) {
if (err || res.statusCode === 404) {
function loadAndAssert(options, callback) {
dotenv._getKeysAndValuesFromEnvFilePath(options.dotenvFile);
dotenv._setEnvs();
dotenvAssert(options.dotenvAssertOptions, callback);
}
var dotenv = require('dotenv');
dotenv._getKeysAndValuesFromEnvFilePath('../.env');
dotenv._setEnvs();
var async = require('async');
var request = require('request');
var _ = require('lodash');
var bar = require('progress-bar').create(process.stdout);
var db = require('../models/db.js');
var Anime = db.Anime;
var fs = require('fs');
//var errorLog = fs.WriteStream('./logs/updateAnime-' + new Date().getTime() + '.log');
var getQ = async.queue(function(task, callback) {
request(task.url, function(err, res, body) {
if (err || res.statusCode === 404) {