# @brillout/browser-config

Latest version **0.5.13** (published 2020-11-12) · 0 weekly downloads

## Install

```sh
npm install @brillout/browser-config
pnpm add @brillout/browser-config
yarn add @brillout/browser-config
bun add @brillout/browser-config
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.13 |
| Published | 2020-11-12 |
| First published | 2018-06-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | brillout |

## Links

- npm: https://www.npmjs.com/package/@brillout/browser-config
- npm.io page: https://npm.io/package/@brillout/browser-config

## Recent versions

- 0.5.13 (latest) — 2020-11-12
- 0.5.12 — 2020-11-12
- 0.5.11 — 2020-10-13
- 0.5.10 — 2020-10-01
- 0.5.9 — 2020-09-27
- 0.5.8 — 2020-09-17
- 0.5.7 — 2020-07-22
- 0.5.6 — 2020-03-22
- 0.5.5 — 2019-10-14
- 0.5.4 — 2019-10-03
- 0.5.3 — 2019-10-02
- 0.5.2 — 2019-09-14
- 0.5.1 — 2019-09-09
- 0.5.0 — 2019-09-08
- 0.4.0 — 2019-07-31
- … 12 more at https://npm.io/package/@brillout/browser-config/versions

## README

<!---






    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).






-->

# `@brillout/browser-config`

A 1-LOC package to have a global configuration object in the browser. (Works in Node.js too.)

### Usage

~~~js
// ./example/config.js

const browswerConfig = require('@brillout/browser-config'); // npm install @brillout/browser-config

browswerConfig.myNewConfig = 42;
~~~

~~~js
// ./example/run.js

require('./config');

const browswerConfig = require('@brillout/browser-config');

// This will print 42
console.log(browswerConfig.myNewConfig);
~~~

### How it works

It's trivial: The package simply exports a plain JavaScript object that acts as the global configuration object.

The source code is:

~~~js
// ./index.js

module.exports = window['@brillout/browser-config'] = window['@brillout/browser-config'] || {};
~~~

<!---






    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/helpers/browser-config/readme.template.md` and run `npm run docs` (or `yarn docs`).






-->

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