1.1.0 • Published 7 years ago

agentdoc v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

AgentDoc

Example:

const generate = require('agentdoc');

const options = {
  // See below for options example
};

generate(options)
  .then(...);

Structure of a settings object

Note that the data Object gets passed to Mustache to render the template with.

{
  "type": "invoice",
  "name": "Test Project",
  "data": {
    "title": "#420",
    "payee": {
      "name": "Some Person",
      "email": "jason@nosaj.io"
    },
    "payer": {
      "name": "Some Other Person",
      "email": "human@graft.co"
    },
    "payment": {
      "bank": "PiggyBank co",
      "name": "MR Some Person",
      "sortcode": "12-34-21",
      "accountno": "12345678"
    },
    "work": [
      {
        "task": "Make sparkles",
        "cost": 10
      },
      {
        "task": "Bear Grooming (2 days)",
        "cost": 400.30
      },
      {
        "task": "Debrief (30 mins)",
        "cost": 0.95
      }
    ]
  }
}
1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago