1.1.0 • Published 4 years ago
@dolt/local-variables v1.1.0
@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