@dolt/local-variables
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@dolt/local-variables

Saves a /local_data/_localvars file to the path provided in the constructor, can be extended to provide type safe local variables

Installation

npm install @dolt/local-variables --save

Usage example

import LocalVariables from '@dolt/local-variables'
import myLogger from './myLogger'

class MyAppLocalVariables extends LocalVariables {
  dbhost: string
  dbname: string
  dbuser: string
  dbpass: string
  constructor(BASEPATH:string, logger:any) {
    super(BASEPATH, logger)
  }
}

export const LOCAL = new MyAppLocalVariables(__dirname, myLogger)

Release History

  • 1.0.0
  • Initial release

Readme

Keywords

Package Sidebar

Install

npm i @dolt/local-variables

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

6.03 kB

Total Files

8

Last publish

Collaborators

  • fuisseran