Observed since 20 Oct, 20:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Module in JavaScript for map object's properties to string key's properties as values
Module in JavaScript for map object's properties to string key's properties as values
##Prerequisites To Install and run the project you need to have installed NodeJS.
https://nodejs.org/en
##Installation
npm install 67168843dda5a1972a3a2b0a3e4ebba5
##Usage To map an object to a json-string template:
Parameter: map(string) Contains the string template in json format
Parameter: scope(object) Contains the object wich has the data to bind into map
Return: Maped object with map format
##Example
var pm = require('67168843dda5a1972a3a2b0a3e4ebba5');
var result = pm.map("{
name:data.person.name,
last_name:data.person.last_name,
addres:data.person.addres,
hobbies:data.person.hobbies,
others:data.others.other
}",
{
data: {
person: {
name:"Carlos",
last_name:"Linares",
addres:"Guadalajara",
hobbies:"Play Guitar, Video Games"
},
others: {
other: "Other things, etc."
}
}
}
);
console.log(result);
##Result The result will be...
{
name:"Carlos",
last_name:"Linares",
addres:"Guadalajara",
hobbies:"Play Guitar, Video Games",
others:"Other things, etc."
}
##License MIT License
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5e9858b1ef14fb301bf1ffa6c4a6b94fa6b5113cf72660eb935cccccf62f5f18