# nets-kar

> Nets KAR Web Service API

Latest version **1.0.4** (published 2019-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install nets-kar
pnpm add nets-kar
yarn add nets-kar
bun add nets-kar
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-12-09 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Anders Evenrud |
| Maintainers | andersevenrud |

## Links

- npm: https://www.npmjs.com/package/nets-kar
- npm.io page: https://npm.io/package/nets-kar

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.88.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.4

## Recent versions

- 1.0.4 (latest) — 2019-12-09
- 1.0.3 — 2019-09-06

## README

# Nets KAR Web Service API

This is a nodejs library that requests the Nets KAR Web Service API.

Contains both AMD and ESM modules and uses `request` for HTTP requests.

## Requirements

You'll need a PKCS12 (`.p12`) certificate and a passphrase for the embedded private key.

## Usage

Example:

```
import { createKar } from 'nets-kar'

createKar({ certificate: 'cert.p12', passphrase: '' })
  .verifyOwner('00000000000', '11111111111')
  .then(({ code, success, message }) => console.log(code, success, message))
  .catch(error => console.error('Request error', error))
```

Set the `mode` option to `"production"` when putting this into production. The default is `"development"`.

## Development

Uses Parcel for building the final AMD module.

Run `npm run build` to run build and `npm run test` for unit tests.

## Documentation

* https://www.nets.eu/no-nb/losninger/konto-og-adresseringsregister/Pages/dokumentasjon.aspx

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