> For the complete documentation index, see [llms.txt](https://nature-3.gitbook.io/naturesaving/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nature-3.gitbook.io/naturesaving/docs/getlocalserver.md).

# 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.

{% code lineNumbers="true" %}

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

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

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

{% endcode %}
