config-templator
Dynamic replacement in object, inspired by GruntJS config
Getting Started
Install the module with: npm install config-templator
Documentation
(Coming soon)
Examples
Flatten:
var config = { foo: 'bar', baz: '<%= bar %>' };
var config-templator = require('config-templator');
config = config-templator.flatten(config);
Get:
config = config-templator.get(config, 'baz');
More examples
var config = { port: 3000, uri: 'localhost:<%= port %>' };
var config-templator = require('config-templator');
config = config-templator.get(config, 'uri');
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
(Nothing yet)
License
Copyright (c) 2013 Loic Mahieu. Licensed under the MIT license.