Skip to main content

Initialization

Once you have installed the library and created your configuration you will be able to initialize the server.

const Saffron = require("@poiw/saffron");

const saffron = new Saffron();

(async () => {
// Initialize saffron
await saffron.initialize({ /* configuration */})

// Start sheduler to parse websites.
await saffron.start();
})();