+3
-3
| { | ||
| "name": "parfait", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "author": "David M. Lee, II <leedm777@yahoo.com>", | ||
@@ -26,3 +26,4 @@ "description": "A sweet multi-layered configuration framework", | ||
| "js-yaml": "^3.0.1", | ||
| "appdirs": "^0.1.1" | ||
| "appdirs": "^0.1.1", | ||
| "coffee-script": "^1.7.1" | ||
| }, | ||
@@ -33,3 +34,2 @@ "devDependencies": { | ||
| "blanket": "^1.1.6", | ||
| "coffee-script": "^1.7.1", | ||
| "chai-as-promised": "^4.1.0", | ||
@@ -36,0 +36,0 @@ "mocha-as-promised": "^2.0.0", |
+19
-13
@@ -53,3 +53,3 @@ # Parfait.js | ||
| // If specified, user and site config can be processed on Unixes | ||
| 'appName': SuperApp', | ||
| 'appName': 'SuperApp', | ||
| // If specified, user and site config can be processed on Windows | ||
@@ -100,17 +100,23 @@ 'appAuthor': 'Acme' | ||
| * Array append/prepend (either single item or another array) | ||
| # Append 'bar' to the array 'foo' | ||
| "foo+": "bar" | ||
| # Append 'bar', 'bam', 'bang' to the array 'foo' | ||
| "foo+": [ "bar", "bam", "bang" ] | ||
| # Prepend 'bar' to the array 'foo' | ||
| "+foo": "bar" | ||
| ```yaml | ||
| # Append 'bar' to the array 'foo' | ||
| "foo+": "bar" | ||
| # Append 'bar', 'bam', 'bang' to the array 'foo' | ||
| "foo+": [ "bar", "bam", "bang" ] | ||
| # Prepend 'bar' to the array 'foo' | ||
| "+foo": "bar" | ||
| ``` | ||
| * Object replacement instead of merging | ||
| # Discard 'foo' and replace with empty object | ||
| "foo=": {} | ||
| # Discard 'foo' and replace with given object | ||
| "foo=": { "bar": 3.14159 } | ||
| ```yaml | ||
| # Discard 'foo' and replace with empty object | ||
| "foo=": {} | ||
| # Discard 'foo' and replace with given object | ||
| "foo=": { "bar": 3.14159 } | ||
| ``` | ||
| * Individual key deleltion | ||
| # Remove 'foo' | ||
| "foo-": null | ||
| ```yaml | ||
| # Remove 'foo' | ||
| "foo-": null | ||
| ``` | ||
| [hosted on NPM]: https://www.npmjs.org/package/parfait |
7
-12.5%121
5.22%23683
-0.05%5
25%+ Added
+ Added