# commonform-suspicious

> identify suspcious Common Forms

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

## Install

```sh
npm install commonform-suspicious
pnpm add commonform-suspicious
yarn add commonform-suspicious
bun add commonform-suspicious
```

## Health

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

Positive: esm support; no vulnerabilities; recently updated.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-09-07 |
| First published | 2015-12-25 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kyle E. Mitchell |
| Maintainers | kemitchell |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.0 (latest) — 2026-09-07
- 0.1.1 — 2015-12-25
- 0.1.0 — 2015-12-25

## README

```javascript
import suspicious from 'commonform-suspicious'
```

The examples in this README are the package's test suite.

```javascript
import assert from 'node:assert'
```

# Deep Nesting

```javascript
let deeplyNested = { content: [ 'A' ] }

for (let depth = 0; depth < 11; depth++) {
  deeplyNested = { content: [ { form: deeplyNested } ] }
}

assert(suspicious(deeplyNested))
```

# Long Defined Terms

```javascript
const term = ( 'This defined term keeps going' + ' and going'.repeat(10) )

assert(suspicious({ content: [ { definition: term } ] }))

assert(suspicious({ content: [ { use: term } ] }))
```

# Long Headings

```javascript
const heading = ( 'This heading keeps going' + ' and going'.repeat(10) )

assert(suspicious({ content: [ { reference: heading } ] }))

assert(
  suspicious({
    content: [
      {
        heading: heading,
        form: { content: [ 'A' ] }
      }
    ]
  })
)
```

# Long Content Arrays

```javascript
const longContentArray = []
for (let index = 0; index < 300; index++) {
  if (index % 2) {
    longContentArray.push('X')
  } else {
    longContentArray.push({ use: 'Y' })
  }
}

assert(suspicious({ content: longContentArray }))
```

# Long Words

```javascript
const word = ( 'gobbledy' + 'obbledy'.repeat(10) + 'gook' )

assert(suspicious({ content: [ word ] }))
assert(!suspicious({ content: [ 'gobbledygook' ] }))
assert(!suspicious({ content: [ 'gobbledy gook' ] }))
```

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