Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "database"

Index

Classes

Variables

Functions

Object literals

Variables

Const read

read: __promisify__ = promisify(readFile)

Const write

write: __promisify__ = promisify(writeFile)

Functions

Const isRootNode

  • isRootNode(path: string): boolean
  • Identify if a path is a root node

    Parameters

    • path: string

    Returns boolean

Const splitPath

  • splitPath(path: string): string[]
  • Split path using "/" as a delimiter

    Parameters

    • path: string

    Returns string[]

Object literals

Const DEFAULT_CTX

DEFAULT_CTX: object

cachePath

cachePath: string = `${__dirname}/db.json`

logger

logger: log = console.log

maxDbSizeMB

maxDbSizeMB: number = 6

Generated using TypeDoc