Catalog npm
PACKAGE EXPLORERView in registry

67168843dda5a1972a3a2b0a3e4ebba5

npm

Module in JavaScript for map object's properties to string key's properties as values

javascriptjsonnodejs
Versions collected2
Direct dependencies7From release 0.0.2
Last observed20 Oct, 20:48 UTC

README

Current package documentation

PropertyMaper Build Status Coverage Status

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:

.map(map, scope)

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.2Registry latest23 Aug 20167
0.0.122 Aug 20167

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
cilp/propertymaper

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:5e9858b1ef14fb301bf1ffa6c4a6b94fa6b5113cf72660eb935cccccf62f5f18