# @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

Latest version **1.1.0** (published 2020-08-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dolt/local-variables
pnpm add @dolt/local-variables
yarn add @dolt/local-variables
bun add @dolt/local-variables
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-08-13 |
| First published | 2020-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrew Garvin |
| Maintainers | fuisseran |
| Keywords | nodejs, boss |

## Links

- npm: https://www.npmjs.com/package/@dolt/local-variables
- Repository: https://github.com/fuisseran/local-variables
- Homepage: https://github.com/fuisseran/local-variables#readme
- Issues: https://github.com/fuisseran/local-variables/issues
- npm.io page: https://npm.io/package/@dolt/local-variables

## Recent versions

- 1.1.0 (latest) — 2020-08-13
- 1.0.0 — 2020-08-11

## 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
```sh
npm install @dolt/local-variables --save
```

## Usage example

```js
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

---
_Source: https://npm.io/package/@dolt/local-variables · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
