# ambiguis

> reponsive tool

Latest version **1.1.0** (published 2016-09-11) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2016-09-11 |
| First published | 2016-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Rlilyyy |
| Maintainers | rlilyyy |
| Keywords | responsive, mobile, phone |

## Links

- npm: https://www.npmjs.com/package/ambiguis
- Repository: https://github.com/Rlilyyy/AmbiguisJS
- Homepage: https://github.com/Rlilyyy/AmbiguisJS#readme
- Issues: https://github.com/Rlilyyy/AmbiguisJS/issues
- npm.io page: https://npm.io/package/ambiguis

## Recent versions

- 1.1.0 (latest) — 2016-09-11
- 1.0.9 — 2016-08-16
- 1.0.8 — 2016-08-12
- 1.0.7 — 2016-08-12
- 1.0.6 — 2016-07-20
- 1.0.5 — 2016-07-20
- 1.0.4 — 2016-07-20

## README

# AmbiguisJS
Simply configure the mobile terminal responsive page

Thanks @amfe: [lib-flexible](https://github.com/amfe/lib-flexible)

## Build

Install modules
```bash
$ npm install
```
Transform ES6 to ES5
```bash
$ gulp default
```
Minify and Uglify
```bash
$ gulp compress
```

## Usage

### Use `<scipt></script>`
```javascript
<script src="./dist/ambiguis.js"></script>

<script type="text/javascript">
  ambiguis({
    initialDpr: 1,
    maximumDpr: 3,
    fontSize: 16,
    maxWidth: 517
  })
</script>
```

### Use `webpack`
```bash
$ npm install ambiguis --save
```

```javascript
require('ambiguis')({
  initialDpr: 1,
  maximumDpr: 3,
  fontSize: 16,
  maxWidth: 517
});
```

### Properties
ambiguis({
  [initialDpr],
  [maximumDpr],
  [fontSize],
  [maxWidth]
})

* initialDpr——The dpr will be set to the number you want.
* maximumDpr——The dpr will never largest than the number you want.
* fontSize——The body's default `font-size` will be set to the number you want.(Default: 12)
* maxWidth——When the `window.innerWidth` larger than this number, we use `maxWidth` instead of `window.innerWidth`.So the root font size will be limited.

There is a global variable `ele` provides the basic information of the current page

## License
This content is released under the [MIT](This content is released under the MIT License.) License.

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