{"size": 517, "ext": "js", "max_stars_repo_path": "install-windows-service.js", "max_stars_repo_name": "mrisney/shaca-batch", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "install-windows-service.js", "max_issues_repo_name": "mrisney/shaca-batch", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "install-windows-service.js", "max_forks_repo_name": "mrisney/shaca-batch", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.85, "max_line_length": 77, "alphanum_fraction": 0.6827852998}
var Service = require('node-windows').Service;

// Create a new service object
var svc = new Service({
  name:'SHACA HPD Batch Process',
  description: 'Nightly SHACA Batch process, uploads mvar data at 4:30 PST.',
  script: 'D:\\projects\\shaca\\shaca-batch\\nightly-file-process.js',
  nodeOptions: [
    '--harmony',
    '--max_old_space_size=4096'
  ]
});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install',function(){
  svc.start();
});

svc.install();