organic-dna-resolvereferences

0.0.3 • Public • Published

organic-dna-resolvereferences

Resolves DNA @branch.property as references

example

var dna = {
  "branch": {
    "property": "value"
  },
  "otherBranch": {
    "propertyValueReference": "@branch.property",
    "wholeBranch": "@branch"
  }
}

var resolveReferences = require("organic-dna-resolvereferences")
resolveReferences(dna)

console.log(dna.otherBranch.propertyValueReference) // == "value"
console.log(dna.otherBranch.wholeBranch.property) // == "value"

/organic-dna-resolvereferences/

    Package Sidebar

    Install

    npm i organic-dna-resolvereferences

    Weekly Downloads

    13

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • outbounder