@funfunz/json-data-connector

json data connector for Funfunz

Usage no npm install needed!

<script type="module">
  import funfunzJsonDataConnector from 'https://cdn.skypack.dev/@funfunz/json-data-connector';
</script>

README

Funfunz JSON Data Connector

Discord Build Status codecov node npm version PRs Welcome GitHub

Features

This connector use a JSON file for each entity to storage its entries.

Configuration

  • folderPath: absolute path of the folder where this connector should read/write JSON files

Example

const config = {
  connectors: {
    mainDatabase: {
      type: '@funfunz/json-data-connector',
      config: {
        folderPath: path.join(__dirname, 'storage') 
      },
    }
  }
}
const funfunz = new Funfunz({ config, ... })