Socket
Book a DemoInstallSign in
Socket

@vorlefan/pathdb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vorlefan/pathdb

PathDB is a small database created upon the JSON structure.

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

PathDB

WORK IN PROGRESS

Easy and small database created around the JSON structure

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

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

import { PathModel } from '../src';

const Model = new PathModel({
    modelName: 'db_create',
    routeName: 'main',
});

describe('Model', () => {
    test('Basic', async () => {
        await Model.model();
        const created = await Model.created();
        expect(created).toBe(true);
    });

    test('Read', async () => {
        const content = await Model.read();
        expect(typeof content === 'object').toBe(true);
    });
});

Keywords

path

FAQs

Package last updated on 12 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.