csi-lk / aws-ses-local

Local Amazon Simple Email Service Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Manually include in code?

kevzettler opened this issue · comments

Is there an interface to manually require and start this from another program without using the CLI interface?

This is how I do it:

console.log('Launching SES Local...');
sesProcess = spawn('npm', ['run', 'ses'], {
  cwd: __dirname + '/../'
});

Not the most elegant but it works.