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

confme

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

confme - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

examples/simple-app/config.json
{
"listenPort": "{{PORT}}",
"listenPort": "{{ PORT }}",
"apiPath": "https://{{DOMAIN}}:{{PORT}}/api/v1",

@@ -4,0 +4,0 @@ "staticUrl": "https://{{DOMAIN}}:{{PORT}}/static",

{
"name": "confme",
"version": "1.0.0",
"version": "1.1.0",
"description": "Opinionated config library that allows you to have complex config and behaves according to Twelve Factor App rules",

@@ -46,3 +46,3 @@ "main": "src/confme.js",

"json5": "^2.1.3",
"livr": "^2.2.4",
"livr": "^2.3.1",
"livr-extra-rules": "^1.2.1"

@@ -49,0 +49,0 @@ },

@@ -48,3 +48,3 @@ require("dotenv-defaults").config();

function replace(template, vars) {
return template.replace(/\{\{(.+?)\}\}/g, (match, p1) => {
return template.replace(/\{\{\s*(.+?)\s*\}\}/g, (match, p1) => {
if (vars.hasOwnProperty(p1)) {

@@ -51,0 +51,0 @@ return vars[p1];

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