# confidence-proxy

> a node.js Proxy module for hapijs/confidence

Latest version **1.0.0** (published 2019-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install confidence-proxy
pnpm add confidence-proxy
yarn add confidence-proxy
bun add confidence-proxy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-02-21 |
| First published | 2019-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | dolsup |
| Keywords | confidence, configuration |

## Links

- npm: https://www.npmjs.com/package/confidence-proxy
- Repository: https://github.com/Ecube-Labs/node-confidence-proxy
- Homepage: https://github.com/Ecube-Labs/node-confidence-proxy#readme
- Issues: https://github.com/Ecube-Labs/node-confidence-proxy/issues
- npm.io page: https://npm.io/package/confidence-proxy

## Dependencies (1)

- [confidence](https://npm.io/package/confidence.md) ^4.0.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-02-21
- 0.2.2 — 2019-02-21
- 0.2.1 — 2019-02-21
- 0.2.0 — 2019-02-21
- 0.1.0 — 2019-02-15

## README

# confidence-proxy
Please refer to [hapijs/confidence](https://github.com/hapijs/confidence) for the details.
## usage
\- config.js
```js
const confidenceProxyHandler = require('confidence-proxy');
module.exports = new Proxy({
  /* confidence document */
  foo: {
    $filter: 'asd'
    $default: {
      bar: 'A'
    }
  }
}, confidenceProxyHandler);
```

\- foo.js
```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

---
_Source: https://npm.io/package/confidence-proxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
