Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Daruk } from 'daruk';
const myApp = new Daruk('myapp', { rootPath: __dirname, debug: process.env.NODE_ENV === 'dev' });
const port = 1318;
myApp.run(port);
import { Daruk } from 'daruk';
const myApp = new Daruk('myapp', { rootPath: __dirname, debug: process.env.NODE_ENV === 'dev' });
const port = 3000;
myApp.run(port);
import { Daruk } from 'daruk';
const port = 3000;
const myApp = new Daruk('my-comments-app', {
rootPath: __dirname,
debug: process.env.NODE_ENV === 'dev'
});
myApp.run(port);
import { Daruk } from 'daruk';
const myApp = new Daruk('myapp', { rootPath: __dirname, debug: process.env.NODE_ENV === 'dev' });
myApp.run(myApp.config.port);