# czech-daily-course

> Czech daily course from czech national bank

Latest version **1.0.1** (published 2018-10-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install czech-daily-course
pnpm add czech-daily-course
yarn add czech-daily-course
bun add czech-daily-course
```

## 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 | 2018-10-18 |
| First published | 2018-09-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.6 |
| Dependencies | 3 |
| Unpacked size | 74.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Tomas Pavlacky |
| Maintainers | tomas.pavlacky |
| Keywords | cnb, kurz, cesky, kurz, course, czech |

## Links

- npm: https://www.npmjs.com/package/czech-daily-course
- Repository: https://github.com/jonnybcz/czech-daily-course
- Homepage: https://github.com/jonnybcz/czech-daily-course#readme
- Issues: https://github.com/jonnybcz/czech-daily-course/issues
- npm.io page: https://npm.io/package/czech-daily-course

## Dependencies (3)

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

## Recent versions

- 1.0.1 (latest) — 2018-10-18
- 1.0.0 — 2018-09-05

## README

# czech-daily-course

![license](https://img.shields.io/badge/license-MIT-blue.svg)
![coverage](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)


Library can fetch czech daily course from Česká národní banka and return as object.

## example js
```javascript
const czechDailyCourse = require('czech-daily-course');


async function download() {
    try {
        const dailyCourseAsString = await czechDailyCourse.fetch();
        const dailyCourse = czechDailyCourse.parse(dailyCourseAsString);
        
        console.log(dailyCourse);
    } catch (err) {
        if (err.statusCode !== 200) {
            console.log(`I can\`t fetch czech daily course. Server returns status code: ${err.statusCode}`);    
        } else {
            console.log(`I can\`t parse czech daily course. Error: ${err}`);
        }
    }
}

download();
```

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