# dunajs

> A simple set of javascript controls

Latest version **1.1.6** (published 2019-01-26) · MIT license · 0 weekly downloads

## Install

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

## 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.1.6 |
| Published | 2019-01-26 |
| First published | 2017-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 110 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexandre Toledo Perez |
| Maintainers | alexandretperez |
| Keywords | duna, javascript, control, component |

## Links

- npm: https://www.npmjs.com/package/dunajs
- Repository: https://github.com/alexandretperez/Duna
- Homepage: https://github.com/alexandretperez/Duna#readme
- Issues: https://github.com/alexandretperez/Duna/issues
- npm.io page: https://npm.io/package/dunajs

## Recent versions

- 1.1.6 (latest) — 2019-01-26
- 1.1.5 — 2019-01-26
- 1.1.4 — 2019-01-26
- 1.1.3 — 2018-09-29
- 1.1.2 — 2018-09-29
- 1.1.1-rc2 — 2018-09-29
- 1.1.1 — 2018-09-29
- 1.1.0 — 2018-09-23
- 1.0.3 — 2018-09-01
- 1.0.2 — 2017-11-28
- 1.0.1 — 2017-11-15
- 1.0.0 — 2017-11-13

## README

# Duna.js

Duna offers a small collection of javascript controls.

## Installation

In-browser usage:

```html
<script src="duna.js"></script>
```

Through NPM:

```javascript
npm install dunajs
```

## Usage

All current controls has two syntaxes of initialization:

```javascript
// by element
new duna.ui.[ControlName](element, options);

// by css selector
duna.ui.[ControlName].from(selector, options);
```

In-browser usage:

```html
<script src="duna.js"></script>
<script>
    new duna.ui.NumericBox(document.getElementById("some"), {...})
</script>
```

On NPM:

```javascript
import duna from 'dunajs';

// e.g. using the css selector
duna.ui.Limiter.from("[maxlength]", { ... })
```

It's also possible to load only what do you need:

```javascript
import { SearchBox } from 'dunajs/ui/SearchBox';

new SearchBox(element, options);
```

## Build and Examples

Clone the project.

Run the follow command lines:

```sh
npm install
npm run dev
```

## Available Controls

Currently there are four available controls in the library.

-   NumericBox
-   SearchBox
-   MaskEdit
-   Limiter

## Documentation

Check out the [wiki pages](https://github.com/alexandretperez/Duna/wiki).

## Credits

The Duna.js project is in development by Alexandre T. Perez under [MIT License](LICENSE).

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