New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

configuration-reader

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configuration-reader

As simple as it gets

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-35.71%
Maintainers
1
Weekly downloads
 
Created
Source

Configuration Reader

As simple as it gets

Usage Example

import { ConfigurationReader } from "configuration-reader"
import * as path from "path"

// you can adjust the filename here - remember updating .gitignore
const yourFileName: string = "../template.env"

const configurationReader: ConfigurationReader = 
    new ConfigurationReader(path.join(__dirname, yourFileName))

const testVariable: string = this.configurationReader.get("testVariable")

console.log(testVariable)

Example data

Check the file template.env. It contains an example entry testVariable=42. Be careful to add your real configuration data to a file which is mentioned in the .gitignore file.

Keywords

FAQs

Package last updated on 19 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc