@@ -43,7 +43,9 @@ your application is running in Cloud Foundry. These include:
4343If these aren't set, the ` getAppEnv() ` API will still return useful values,
4444as appropriate. This means you can use this package in your program and
4545it will provide useful values when you're running in Cloud Foundry AND
46- when you're running locally.
46+ when you're running locally. You can supply local versions of
47+ ` VCAP_SERVICES ` and/or ` VCAP_APPLICATION ` by using the ` vcap ` and ` vcapFile `
48+ options described below.
4749
4850
4951api
@@ -89,6 +91,16 @@ The `options` parameter is optional, and can contain the following properties:
8991
9092 This option property is ignored if not running locally.
9193
94+ * ` vcapFile ` - provide the same function as the ` vcap ` option, but instead of
95+ setting the option value to an object, you set it to the name of a JSON
96+ file, which will be parsed and used as the ` vcap ` option value is used,
97+ as described above.
98+
99+ When both ` vcap ` and ` vcapFile ` options are provided, the values in ` vcap `
100+ are ignored.
101+
102+ This option property is ignored if not running locally.
103+
92104This function returns an object with the following properties:
93105
94106* ` app ` : object version of ` VCAP_APPLICATION ` env var
@@ -311,6 +323,12 @@ When you visit the site, you'll see the output of various cfenv calls.
311323changes
312324================================================================================
313325
326+ ** 1.1.0** - 2018/04/18
327+
328+ - add the ` vcapFile ` option - [ issue #31 ] [ ]
329+
330+ [ issue #31 ] : https://github.com/cloudfoundry-community/node-cfenv/issues/31
331+
314332** 1.0.4** - 2017/01/13
315333
316334- fix to getServiceURL() with non-http URLs - [ issue #21 ] [ ]
@@ -342,6 +360,13 @@ changes
342360- initial 1.0.0 release
343361
344362
363+ contributing
364+ ================================================================================
365+
366+ See the [ CONTRIBUTING.md] ( CONTRIBUTING.md ) doc for more information on
367+ contributing to this project.
368+
369+
345370license
346371================================================================================
347372
0 commit comments