Skip to content
jeff edited this page Jun 10, 2014 · 10 revisions

Proposed Simplified Design

API

insert.into(<filename>, <matcher>, <insert>);

matcher options:

  1. Match By Structure
  2. Match By Order of Occurrence
{
  obj: '',
  func: '',
  nested: {
    before: {
      obj: '',
      func: '',
      ret: true
    },
    after: {
      obj: '',
      func: '',
    }
  }
}

value options:

{
  code: '',
  obj: {
    key: '',
    value: ''
    type: 'literal|variable' //variable is default
  },
  func: {
    param: '',
    type: 'literal|variable' //variable is default
  },
  arr: {
    param: '',
    type: 'literal|variable' //variable is default
  }
}
Clone this wiki locally