# @internetarchive/donation-form-data-models

> Internet Archive Donation Form Data Models

Latest version **0.3.6** (published 2025-11-06) · AGPL-3.0-only license · 0 weekly downloads

## Install

```sh
npm install @internetarchive/donation-form-data-models
pnpm add @internetarchive/donation-form-data-models
yarn add @internetarchive/donation-form-data-models
bun add @internetarchive/donation-form-data-models
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.6 |
| Published | 2025-11-06 |
| First published | 2020-08-27 |
| Weekly downloads | 0 |
| License | AGPL-3.0-only |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 127.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | bfalling, mitraardron, vbanos, kngenie, iisa, cdrini, nsharma123, dualcnhq, latonv, ibnesayeed, tracey.pooh, jim-at-ia, jeffwklein, rebecca-shoptaw, jbuckner |

## Links

- npm: https://www.npmjs.com/package/@internetarchive/donation-form-data-models
- npm.io page: https://npm.io/package/@internetarchive/donation-form-data-models

## Recent versions

- 0.3.6 (latest) — 2025-11-06
- 0.3.7-webdev-8122.0 (alpha) — 2026-01-20
- 0.3.6-alpha.0 (canary) — 2025-10-16
- 0.3.5 — 2024-12-26
- 0.3.5-alpha.1 — 2024-12-26
- 0.3.4 — 2024-12-23
- 0.3.4-alpha.1 — 2024-12-19
- 0.3.3 — 2022-12-13
- 0.3.2 — 2021-08-12
- 0.3.2-alpha.4 — 2021-08-09
- 0.3.2-alpha.3 — 2021-08-06
- 0.3.2-alpha.2 — 2021-08-06
- 0.3.2-alpha.1 — 2021-08-06
- 0.3.1 — 2020-10-05
- 0.3.1-alpha.1 — 2020-09-28
- … 5 more at https://npm.io/package/@internetarchive/donation-form-data-models/versions

## README

# Donation Form Data Models

The data models for the Internet Archive donation form

## Installation

```bash
yarn add @internetarchive/donation-form-data-models
```

## Usage

This is meant to be used in conjunction with the Internet Archive donation form, but
you can instantiate the models:

```js
import {
  CustomerInfo,
  DonationPaymentInfo,
} from '@internetarchive/donation-form-data-models';

const customer = new CustomerInfo({
  email: 'foo@bar.com',
  firstName: 'Fooey',
  lastName: 'McBarrison',
});

const donationInfo = new DonationPaymentInfo({
  donationType: DonationType.OneTime,
  amount: 3.5,
  coverFees: false,
});

// donationInfo.total = 3.5
```

# Development

## Prerequisite

```bash
yarn install
```

## Start Development Server

```bash
yarn start
```

## Testing

```bash
yarn test
```

## Testing via browserstack

```bash
yarn test:bs
```

## Linting

```bash
yarn lint
```

---
_Source: https://npm.io/package/@internetarchive/donation-form-data-models · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
