# karrio

> Multi-carriers Shipping API Node library (Canada Post, DHL, FedEx, UPS, Purolator and more)

Latest version **2023.1.0** (published 2023-01-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install karrio
pnpm add karrio
yarn add karrio
bun add karrio
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2023.1.0 |
| Published | 2023-01-29 |
| First published | 2022-03-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Team Karrio |
| Maintainers | danh91 |
| Keywords | Multi-carriers, shipping, API, Javascript, library |

## Links

- npm: https://www.npmjs.com/package/karrio
- Repository: https://github.com/karrioapi/karrio-node
- Homepage: https://github.com/karrioapi/karrio-node#readme
- Issues: https://github.com/karrioapi/karrio-node/issues
- npm.io page: https://npm.io/package/karrio

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.8

## Recent versions

- 2023.1.0 (latest) — 2023-01-29
- 2022.3.1 — 2022-03-17
- 2022.3.0 — 2022-03-17

## README

# Karrio Node/JS/TS Library

Karrio is a universal Shipping API that simplifies the integration of logistic carrier services.

Visit [karrio.io](https://karrio.io) to deploy your private cloud multi-carrier shipping API.

## Documentation

See the full [Node API docs](https://docs.karrio.io/reference).

## Installation

Install using [npm](https://www.npmjs.com/package/npm) or [yarn](https://yarnpkg.com/)

```bash
npm i karrio
# or 
yarn add karrio
```

## Usage

The package needs to be configured with your account's API key, which is available in the Karrio Dashboard.

```javascript
const karrio = require('karrio')('key_...', 'https://api.karrio.io');

karrio.carriers.list()
    .then(carriers => console.log(carriers))
    .catch(error => console.error(error));
```

Or using ES modules and `async`/`await`:

```javascript
import Karrio from 'karrio';
const karrio = Karrio('key_...', 'https://api.karrio.io');

(async () => {
  const carriers = await karrio.carriers.list();

  console.log(carriers);
})();
```

## Author

Team Karrio | hello@karrio.io | [karrio.io](https://karrio.io)

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