Skip to main content
Version: v2.0

πŸ‘‹ Welcome!

Welcome to the documentation of simply-xp. This documentation will help you get started with simply-xp.

Documentation made for: v2.0.0

Installation​

npm install simply-xp@2.0.0
Pick a database adapter

simply-xp ships without a database driver. Install one alongside it β€” mongodb for MongoDB, or better-sqlite3 for SQLite:

npm install mongodb
# or
npm install better-sqlite3

If you call connect() without the matching adapter installed, simply-xp throws a catchable SimplyXpFatal with error.code === "SX_ADAPTER_MISSING", and the message tells you exactly what to install.

simply-xp itself supports Node.js 14+, but the adapters require newer runtimes. If your Node.js version is older than the adapter's requirement, install an adapter major that matches it (for example better-sqlite3@11 or mongodb@6) instead of the latest.


βž• Importing simply-xp​

const simplyxp = require("simply-xp");

πŸ“š Useful Pages​