New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dolt/local-variables

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@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

Keywords

nodejs

FAQs

Package last updated on 13 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts