{"_id":"6b2f7cba85b3b7129e74b5db7b1a23df","_rev":"3-14b7251bff4ef23b816d5be233f56ee2","name":"6b2f7cba85b3b7129e74b5db7b1a23df","description":"Test Back End Developer","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"6b2f7cba85b3b7129e74b5db7b1a23df","version":"1.0.0","description":"Test Back End Developer","main":"index.js","scripts":{"test":"gulp test"},"author":{"name":"Marco Orta"},"devDependencies":{"chai":"^3.5.0","gulp":"^3.9.1","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","gulp-run":"^1.7.1"},"_id":"6b2f7cba85b3b7129e74b5db7b1a23df@1.0.0","_shasum":"972c4d4df4e7b8f32d2367a087ee06104e7a1994","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"marck1391","email":"marck1391@gmail.com"},"dist":{"shasum":"972c4d4df4e7b8f32d2367a087ee06104e7a1994","tarball":"https://registry.npmjs.org/6b2f7cba85b3b7129e74b5db7b1a23df/-/6b2f7cba85b3b7129e74b5db7b1a23df-1.0.0.tgz","integrity":"sha512-XgBePIfR/FKu8PNsdQg5Ur9j40APsSqeCRPAi3zmKx740mLr/sUJoFDVBdEVpw5OkoRi3btuBXSltsfmMQhKCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqzH65K3zFCKPcSKvJb+Dn2+6p0ZoppM1yihZ6q/0JvAiEA/oiLliXtXs8DiRwufiSixZocaKdezEoFYjAJncU2R6A="}]},"maintainers":[{"name":"marck1391","email":"marck1391@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/6b2f7cba85b3b7129e74b5db7b1a23df-1.0.0.tgz_1469199062593_0.9275863275397569"}}},"readme":"# DataBind\n\nModule used for data binding between a javascript object (provider) and a string (consumer), saves the synchronized data into a new object.\n\n#### Installation\n```sh\n$ npm install 6b2f7cba85b3b7129e74b5db7b1a23df --save\n```\n---\n#### function dataBind(map, scope)\n\n##### Params\n- (string) `map`: The string template, a valid javascript object\n- (object) `scope`: The data object\n\n##### Returns\n- `Object` with same format as `map` parameter or `false` if an error occurs\n- `false` if a property is not defined in the `scope` object and the `map` string requires it or if the `map` string has an incorrect syntax\n\nExample:\n```javascript\nvar dataBind = require('6b2f7cba85b3b7129e74b5db7b1a23df')\n\nvar map = '{Data: {property1: data.prop}, Other: {propertyN: other.data} }'\n\nvar scope = {\n    'data': {\n        'prop': 'VALUE 1'\n    },\n    'other': {\n        'data': 'VALUE 2'\n    }\n}\n\nvar result = dataBind(map, scope)\n```\n\nThe result variable will contain\n```json\n{\n    \"Data\": {\n        \"property1\": \"VALUE 1\"\n    },\n    \"Other\": {\n        \"propertyN\": \"VALUE 2\"\n    }\n}\n```\n---\n#### Other info\nPublish package, runs test tasks when the code changes\n```sh\n$ gulp\n```\nUnit tests and code coverage tasks\n```sh\n$ gulp test\n```\n","maintainers":[{"name":"marck1391","email":"marck1391@gmail.com"}],"time":{"modified":"2022-06-12T14:08:20.352Z","created":"2016-07-22T14:51:04.470Z","1.0.0":"2016-07-22T14:51:04.470Z"},"author":{"name":"Marco Orta"},"readmeFilename":"README.md"}