$ cnpm install config-templator

Dynamic replacement in object, inspired by GruntJS config
Install the module with: npm install config-templator
(Coming soon)
Flatten:
var config = { foo: 'bar', baz: '<%= bar %>' };
var config-templator = require('config-templator');
config = config-templator.flatten(config); // { foo: 'bar', baz: 'bar' }
Get:
config = config-templator.get(config, 'baz'); // bar
var config = { port: 3000, uri: 'localhost:<%= port %>' };
var config-templator = require('config-templator');
config = config-templator.get(config, 'uri'); // localhost:3000
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.
(Nothing yet)
Copyright (c) 2013 Loic Mahieu. Licensed under the MIT license.
Copyright 2013 - present © cnpmjs.org | Home |