Socket
Book a DemoInstallSign in
Socket

confidence-proxy

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confidence-proxy

a node.js Proxy module for hapijs/confidence

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

confidence-proxy

Please refer to hapijs/confidence for the details.

usage

- config.js

const confidenceProxyHandler = require('confidence-proxy');
module.exports = new Proxy({
  /* confidence document */
  foo: {
    $filter: 'asd'
    $default: {
      bar: 'A'
    }
  }
}, confidenceProxyHandler);

- foo.js

const config = require('./config');
console.log(config.foo.bar); //A

// TODO

feature

  • Support VS Code's autocompletion for the properties. Awesome!

// TODO

TODO

  • add test codes
  • custom criteria: now it always use process.env
  • // add more TODO

Keywords

confidence

FAQs

Package last updated on 21 Feb 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