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"

Readme

Keywords

none

Package Sidebar

Install

npm i organic-dna-resolvereferences

Weekly Downloads

17

Version

0.0.3

License

MIT

Last publish

Collaborators

  • outbounder