@dolt/local-variables
v1.1.0
Published
Saves a /local_data/_localvars file to the path provided in the constructor, can be extended to provide type safe local variables
Readme
@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 --saveUsage 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
