cpsubrian/node-etc — pull request #7 by cpsubrian (2014-01-02 18:39:50+00:00)
Title: Fix custom delimiter in env()

This makes the custom delimiter in env() behave more logically. Previously, the delimiter's only purpose was to separate the prefix from the keys. With this change, you are now expected to provide the entire prefix, and the delimiter is what separates depth in keys (overriding the default delimiter).

A quick example on how this update changes the behavior:

**Previous Usage**
```js
// Given the following environment vars:
// app_user:name = Brian
// app_user:email = cpsubrian@gmail.com

conf.env('app');

conf.get('user');
// { name: 'Brian', email: 'cpsubrian@gmail.com'}
```

**New Usage**
```js
// Given the following environment vars:
// app_user:name = Brian
// app_user:email = cpsubrian@gmail.com

conf.env('app_');

conf.get('user');
// { name: 'Brian', email: 'cpsubrian@gmail.com'}
```

**Using a custom delimiter**
```js
// Given the following environment vars:
// app_user_name = Brian
// app_user_email = cpsubrian@gmail.com

conf.env('app_', '_');

conf.get('user');
// { name: 'Brian', email: 'cpsubrian@gmail.com'}
```