Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/config

Package Overview
Dependencies
Maintainers
1
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/config

travetto: Config ===

  • 0.0.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
129
decreased by-69.65%
Maintainers
1
Weekly downloads
 
Created
Source

travetto: Config

This module provides common infrastructure for application based initialization. There is a common infrastructure pattern used:

  • Configuration
    • A scan for all src/app/**/config.ts.
    • Each config.ts file must call registerNamespace to define a new configuration namespace.
    • Every configuration property can be overridden via environment variables (case-insensitive).
      • Object navigation is separated by underscores
      • e.g. MAIL_TRANSPORT_HOST would override mail.transport.host and specifically transport.host in the mail namespace.
    • All configuration variables should be loaded before any modules use it.
    • config.ts should not require any code from your modules to ensure the order of loading
  • Bootstrap
    • Supports initializing the application, and then requiring classes using a glob pattern to handle the common initialization process.

FAQs

Package last updated on 26 Mar 2018

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