Sha256: 690c56b4e1b801c4abd207306bb64e427bd50967b931b84d7cdc042cade1a14b

Contents?: true

Size: 1.59 KB

Versions: 62

Compression:

Stored size: 1.59 KB

Contents

# bower-config [![Build Status](https://secure.travis-ci.org/bower/config.png?branch=master)](http://travis-ci.org/bower/config)

> The Bower config (`.bowerrc`) reader and writer.

The config spec can be read [here](https://docs.google.com/document/d/1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fLIjtWc/).


## Install

```sh
$ npm install --save bower-config
```


## Usage

#### .load(overwrites)

Loads the bower configuration from the configuration files.

Configuration is overwritten (after camelcase normalisation) with `overwrites` argument.

This method overwrites following environment variables:

- `HTTP_PROXY` with `proxy` configuration variable
- `HTTPS_PROXY` with `https-proxy` configuration variable
- `NO_PROXY` with `no-proxy` configuration variable

It also clears `http_proxy`, `https_proxy`, and `no_proxy` environment variables.

To restore those variables you can use `restore` method.

#### restore()

Restores environment variables overwritten by `.load` method.

#### .toObject()

Returns a deep copy of the underlying configuration object.
The returned configuration is normalised.
The object keys will be camelCase.


#### #create(cwd)

Obtains a instance where `cwd` is the current working directory (defaults to `process.cwd`);

```js
var config = require('bower-config').create();
// You can also specify a working directory
var config2 = require('bower-config').create('./some/path');
```

#### #read(cwd, overrides)

Alias for:

```js
var configObject = (new Config(cwd)).load(overrides).toJson();
```

## License

Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.6 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/bower-config/README.md
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/bower-config/README.md