Socket
Book a DemoInstallSign in
Socket

@internetarchive/donation-form-data-models

Package Overview
Dependencies
Maintainers
10
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@internetarchive/donation-form-data-models

Internet Archive Donation Form Data Models

npmnpm
Version
0.0.1-alpha.1
Version published
Weekly downloads
30
-9.09%
Maintainers
10
Weekly downloads
 
Created
Source

Build Status codecov

Donation Form Data Models

The data models for the Internet Archive donation form

Installation

npm install @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:

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

npm install

Start Development Server

npm start

Testing

npm test

Testing via browserstack

npm test:bs

Linting

npm lint

FAQs

Package last updated on 27 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts