npm.io
1.2.0 • Published 2 years ago

@funfunz/json-data-connector

Licence
MIT
Version
1.2.0
Deps
2
Size
27 kB
Vulns
0
Weekly
0
Stars
1

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, ... })