# nanocal-ranger

> Minimal, AirBnb inspired, range picker

Latest version **0.3.1** (published 2018-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install nanocal-ranger
pnpm add nanocal-ranger
yarn add nanocal-ranger
bun add nanocal-ranger
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2018-05-13 |
| First published | 2017-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 34.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 128 |
| Maintainers | zigomir |

## Links

- npm: https://www.npmjs.com/package/nanocal-ranger
- Repository: https://github.com/zigomir/nanocal/tree/master/ranger
- Homepage: https://github.com/zigomir/nanocal
- Issues: https://github.com/zigomir/nanocal/issues
- npm.io page: https://npm.io/package/nanocal-ranger

## Recent versions

- 0.3.1 (latest) — 2018-05-13
- 0.3.0 — 2018-05-13
- 0.2.8 — 2018-01-31
- 0.2.7 — 2017-11-21
- 0.2.6 — 2017-11-16
- 0.2.5 — 2017-11-13
- 0.2.4 — 2017-11-12
- 0.2.3 — 2017-11-11
- 0.2.2 — 2017-11-11
- 0.2.1 — 2017-11-11
- 0.2.0 — 2017-11-10

## README

# ranger (range picker)

## usage in three steps

1. add link to head for styles
```html
<link rel="stylesheet" href="https://unpkg.com/nanocal-ranger/dist/ranger.min.css">
```

2. add div to body (yes I'm thinking about custom-elements, hopefully soon)
```html
<div id="ranger"></div>
```

3. add script

```html
<script type="module">
  import Ranger from 'https://unpkg.com/nanocal-ranger?module'
  const ranger = new Ranger({ target: document.querySelector('#ranger') })
</script>
```

see [doc/options](../doc/options.md)

## usage with npm and your own build pipeline

```sh
npm install nanocal-ranger
```

```js
const Ranger = require('nanocal-ranger')
// or
import Ranger from 'nanocal-ranger'
```

For more detailed examples how to use `nanocal` with `vue` or `react`, see [examples](../examples).

## customize styles

see [doc/styles](../doc/styles.md)

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