ooxml-signature-pages

3.2.0 • Public • Published

ooxml-signature-pages

Given an Array of signature page objects satisfying signature-page-schema, return a string of Office Open XML (Microsoft Word .docx) markup.

var assert = require('assert')
var signaturePages = require('ooxml-signature-pages')

Blank Pages

var blankPages = signaturePages([
  {
    header: (
      'The parties are signing this agreement ' +
      'on the dates by their signatures.'
    ),
    entities: [
      {
        name: 'SomeCo, Inc.',
        form: 'corporation',
        jurisdiction: 'Delaware',
        by: 'Chief Executive Officer'
      }
    ],
    information: ['date']
  },
  {
    samePage: true,
    information: ['date']
  }
])
assert(typeof blankPages === 'string')

Pre-Filled Pages

var preFilled = signaturePages([
  {
    entities: [
      {
        name: 'SomeCo, Inc.',
        form: 'corporation',
        jurisdiction: 'Delaware',
        by: 'Chief Executive Officer'
      }
    ],
    name: 'Jane Manager',
    information: {
      date: 'January 1, 2019',
      email: 'jane@someco.com',
      'with copies to': 'legal@someco.com'
    }
  },
  {
    samePage: true,
    name: 'John Doe',
    information: {
      date: 'January 2, 2019'
    }
  }
])
assert(typeof preFilled === 'string')
assert(preFilled.includes('With Copies To'))

Readme

Keywords

none

Package Sidebar

Install

npm i ooxml-signature-pages

Weekly Downloads

747

Version

3.2.0

License

BlueOak-1.0.0

Unpacked Size

9.39 kB

Total Files

4

Last publish

Collaborators

  • kemitchell