# commonform-group-series

> group paragraphs and series of children within Common Forms

Latest version **4.0.0** (published 2026-09-05) · BlueOak-1.0.0 license · 0 weekly downloads

## Install

```sh
npm install commonform-group-series
pnpm add commonform-group-series
yarn add commonform-group-series
bun add commonform-group-series
```

## Health

**Score 55/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-09-05 |
| First published | 2015-02-11 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kyle E. Mitchell |
| Maintainers | kemitchell |
| Keywords | contracts, document assembly, knowledge management, law, markup |

## Links

- npm: https://www.npmjs.com/package/commonform-group-series
- Repository: https://github.com/commonform/commonform-group-series
- Homepage: https://github.com/commonform/commonform-group-series#readme
- Issues: https://github.com/commonform/commonform-group-series/issues
- npm.io page: https://npm.io/package/commonform-group-series

## Dependencies (1)

- [commonform-predicate](https://npm.io/package/commonform-predicate.md) ^7.0.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2026-09-05
- 3.0.0 — 2022-06-05
- 2.0.0 — 2019-05-29
- 1.0.0 — 2018-01-29
- 0.5.2 — 2016-08-21
- 0.5.1 — 2015-09-01
- 0.5.0 — 2015-08-23
- 0.4.0 — 2015-04-15
- 0.3.1 — 2015-03-08
- 0.3.0 — 2015-03-08
- 0.2.0 — 2015-02-17
- 0.1.0 — 2015-02-11

## README

# commonform-group-series

group paragraphs and series of children within Common Forms

```javascript
import group from 'commonform-group-series'
import assert from 'node:assert'

const A = { form: { content: [ 'A' ] } }
const B = { form: { content: [ 'B' ] } }
const C = {
  component: 'https://example.com/component',
  version: '1.0.0',
  substitutions: { terms: {}, headings: {} }
}
const D = { form: { content: [ 'D' ] } }

const X = { use: 'X' }
const Y = { definition: 'Y' }

const form = { content: [ A, B, X, 'text', Y, C, D ] }

assert.deepEqual(
  group(form),
  [
    {
      type: 'series',
      content: [ A, B ]
    },
    {
      type: 'paragraph',
      content: [ X, 'text', Y ]
    },
    {
      type: 'series',
      content: [ C, D ]
    }
  ]
)
```

---
_Source: https://npm.io/package/commonform-group-series · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
