# docparse-default-customer

> Create default customer mongoose model in memory for use in docparse tests

Latest version **1.0.1** (published 2013-02-12) · BSD license · 0 weekly downloads

## Install

```sh
npm install docparse-default-customer
pnpm add docparse-default-customer
yarn add docparse-default-customer
bun add docparse-default-customer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2013-02-12 |
| First published | 2013-02-03 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Noah Isaacson |
| Maintainers | clewfirst |
| Keywords | docparse, customer, default, model, mongoose, mock |

## Links

- npm: https://www.npmjs.com/package/docparse-default-customer
- Repository: https://github.com/nisaacson/docparse-default-customer
- npm.io page: https://npm.io/package/docparse-default-customer

## Dependencies (1)

- [docparse-customer](https://npm.io/package/docparse-customer.md) ~1.1.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2013-02-12
- 1.0.0 — 2013-02-03

## README

# Docparse Default Customers
Create default customer mongoose model in memory for use in docparse tests

[![Build Status](https://travis-ci.org/nisaacson/docparse-default-customer.png)](https://travis-ci.org/nisaacson/docparse-default-customer)
[![Dependency Status](https://david-dm.org/nisaacson/docparse-default-customer/status.png)](https://david-dm.org/nisaacson/docparse-default-customer)
Dependency tracking by [David](https://david-dm.org/)

# Usage

Default object
```javascript
var inspect = require('eyespect').inspector()
var createDefaultCustomer = require('docparse-default-customer')
createDefaultCustomer(function(err, customer) {
  if (err) {
    inspect(err, 'error creating customer')
    return;
  }
  inspect(customer.toObject(), 'created customer');
});
```

With custom data
```javascript
var data = {
  supplierCode: 'POS',
  customerName: 'Point Oxygen Services'
};
var createDefaultCustomer = require('docparse-default-customer')
createDefaultCustomer(data, function(err, customer) {
  if (err) {
    inspect(err, 'error creating customer')
    return;
  }
  inspect(customer.toObject(), 'default customer');
});
```
## Installation
`npm install docparse-default-customer`

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