getLocalServer

Get the LocalServer and use it!

When you already created your LocalServer then this is the next step. The getLocalServer function is there, to get the created LocalServer in any file.

const { LocalServer, getLocalServer } = require('naturesaving');

const server = new LocalServer({ name: 'Example', path: './database' });

const localServer = getLocalServer({ name: 'Example' });

Last updated