# gr8-dev

> ⓖⓡ⑧ Development grid

Latest version **0.0.2** (published 2017-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install gr8-dev
pnpm add gr8-dev
yarn add gr8-dev
bun add gr8-dev
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-02-05 |
| First published | 2017-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jon Gacnik |
| Maintainers | amongiants |

## Links

- npm: https://www.npmjs.com/package/gr8-dev
- Repository: https://github.com/jongacnik/gr8-dev
- Homepage: https://github.com/jongacnik/gr8-dev#readme
- Issues: https://github.com/jongacnik/gr8-dev/issues
- npm.io page: https://npm.io/package/gr8-dev

## Dependencies (2)

- [bel](https://npm.io/package/bel.md) ^4.5.1
- [xtend](https://npm.io/package/xtend.md) ^4.0.1

## Recent versions

- 0.0.2 (latest) — 2017-02-05
- 0.0.1 — 2017-02-04

## README

# ⓖⓡ⑧ DEV

Development grid for [gr8](https://github.com/jongacnik/gr8)

```
npm i gr8-dev
```

## Example

```js
var gr8 = require('gr8')
var dev = require('gr8-dev')
var rst = require('recsst')

var css = gr8()

rst.attach()
dev.attach()
css.attach()
```

<details>
  <summary>View grid html</summary>

  ```html
  <div data-gr8-dev="data-gr8-dev" class="dn">
    <div class="psf w100 h100 t0 l0 pen dev px1">
      <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
        <div class="fl h100 c1 p1">
          <div class="h100 w100"></div>
        </div>
    </div>
  </div>
  ```
</details>

In the browser you can now press `w` to toggle the grid or `d` to toggle dev styles.

## API

### `gr8dev.attach(options)`

Appends grid to dom and attaches event listeners for toggling the grid and dev styles.

| option | default | controls |
| --- | --- | --- |
| wrapClass | `'px1'` | grid wrap class, handy for page gutter |
| wrapAttrs | `{}` | additional wrap attributes, handy for responsive |
| colClass | `'p1'` | column wrap class, handy for column gutter |
| colAttrs | `{}` | additional column attributes, handy for responsive |
| visible | `false` | initial grid visibility |

### `gr8dev.detatch()`

Removes grid from dom and removes event listeners.

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