JSPM

@vorlefan/pathdb

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q30192F
  • License MIT

PathDB is a small database created upon the JSON structure.

Package Exports

  • @vorlefan/pathdb

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vorlefan/pathdb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PathDB

Easy and small database created around the JSON structure

https://badgen.net/bundlephobia/minzip/@vorlefan/path

With npm do:

npm install @vorlefan/pathdb

With yarn do:

yarn add  @vorlefan/pathdb

Documentation

You can access on the folder 'docs' of this repository A better documentation will be made at the near future.


Highlight

  • Create Models
  • Valid Models
  • Simple Query from Models
  • Easy to use and setup
  • Cache can be done with localStorage
  • Save temp files as a alternative backup

Example

Please, take a look at the 'example' folder of this repository

// model.ts

/**
 * @description Basic usage of this module.
 * This will take at account this folder (module folder),
 * as example.
 */

import { DataModel } from '@vorlefan/pathdb';

// Create a new route instance and give it a name

const Model = DataModel.config({}).model('name', schema);

export default Model;

// test.ts

import Model from './model';

const output = await Model.create(data);