Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@sesamecare-oss/confit

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sesamecare-oss/confit

@sesamecare-oss/confit is a modern rewrite of [confit](https://github.com/krakenjs/confit) in Typescript using Promises and bundling the standard shortstop handlers. The general approach of stackable environment-aware configurations is retained, but we ad

latest
Source
npmnpm
Version
2.2.1
Version published
Maintainers
1
Created
Source

confit

@sesamecare-oss/confit is a modern rewrite of confit in Typescript using Promises and bundling the standard shortstop handlers. The general approach of stackable environment-aware configurations is retained, but we add proper typing for key lookups and just generally modernize the build pipeline. We also bundle the shortstop infrastructure and the common shortstop handlers.

env

The env shortstop handler accepts the following format specificiations:

  • env:SOMEVAR|u - Return the variable if it exists and is non-empty, else undefined
  • env:SOMEVAR|ud - Return the variable as a number if it exists, or undefined
  • env:SOMEVAR|d - Return the value as a decimal, or NaN if not there
  • env:SOMEVAR|b - Return the value as a boolean - empty, false, 0 and undefined will be false
  • env:SOMEVAR|!b - Return the value as a boolean but inverted so that empty/undefined/0/false are true

file

The file handler uses the pipe character to allow specifying the encoding with which to read the file. The valid encodings are base64|binary|hex|utf8|ucs2|utf16le|ascii. If you somehow have a pipe with one of these values at the end your filename (wow), use |binary at the end to make it clearer and behave as normal.

Keywords

typescript

FAQs

Package last updated on 14 Feb 2024

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