# learn-raf

> a CountDown class, which provide start and stop method and render to target DOM.

Latest version **1.0.1** (published 2021-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install learn-raf
pnpm add learn-raf
yarn add learn-raf
bun add learn-raf
```

## 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 | 2021-01-03 |
| First published | 2021-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sijilolai |

## Links

- npm: https://www.npmjs.com/package/learn-raf
- npm.io page: https://npm.io/package/learn-raf

## Dependencies (1)

- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1

## Recent versions

- 1.0.1 (latest) — 2021-01-03
- 1.0.0 — 2021-01-03

## README

# CountDown class

a CountDown class, which provide start and stop method and render to target DOM.

## API

| method         | params | description     |
| -------------- | ------ | --------------- |
| startCountdown | -      | start countdown |
| stopCountdown  | -      | stop countdown  |

## usage

```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <script src="./index.js"></script>
    <script>
      const instance = new CountDown("app");
      instance.startCountdown();
      setTimeout(() => {
        instance.stopCountdown();
      }, 2000);
    </script>
  </body>
</html>
```

## develop

```bash
yarn install
```

```bash
yarn build
```

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