Takes a string with point separated object properties and adds them to a real object (+ adds a value)
Install the module with: npm install propcopy
var propcopy = require('propcopy');
console.log(propcopy.add('propOne.propTwo.propThree.propFour', 'someValue'));
// will return: {propOne: {propTwo: {propThree: {propFour: 'someValue'}}}}
propcopy.get();
// will return: {propOne: {propTwo: {propThree: {propFour: 'someValue'}}}}
// propcopy.get() returns everything that has been set via add()
(Coming soon)
see Getting Started
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 Marc Dix Licensed under the MIT license.