# @benmaclaurin/hanzigrid

> Hanzi grid generator for JS

Latest version **2.1.0** (published 2019-01-06) · 0 weekly downloads

## Install

```sh
npm install @benmaclaurin/hanzigrid
pnpm add @benmaclaurin/hanzigrid
yarn add @benmaclaurin/hanzigrid
bun add @benmaclaurin/hanzigrid
```

## 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 | 2.1.0 |
| Published | 2019-01-06 |
| First published | 2019-01-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | benmaclaurin |

## Links

- npm: https://www.npmjs.com/package/@benmaclaurin/hanzigrid
- Repository: https://github.com/benmaclaurin/hanzigrid
- Homepage: https://github.com/benmaclaurin/hanzigrid#readme
- Issues: https://github.com/benmaclaurin/hanzigrid/issues
- npm.io page: https://npm.io/package/@benmaclaurin/hanzigrid

## Recent versions

- 2.1.0 (latest) — 2019-01-06
- 2.0.0 — 2019-01-06
- 1.12.0 — 2019-01-06
- 1.11.0 — 2019-01-05
- 1.10.0 — 2019-01-05
- 1.9.0 — 2019-01-05
- 1.8.0 — 2019-01-05
- 1.7.0 — 2019-01-05
- 1.6.0 — 2019-01-05
- 1.5.0 — 2019-01-05
- 1.4.0 — 2019-01-05
- 1.3.0 — 2019-01-05
- 1.2.0 — 2019-01-05
- 1.1.0 — 2019-01-05
- 1.0.0 — 2019-01-05

## README

# Hanzi Grid
###### JS module for creating hanzi grids/tables

This is a simple module (my first) which generates SVG-based hanzi grids/tables for Chinese language learners. You can use [Browserify](http://browserify.org) to require this module on the web.

## Install
```
npm install @benmaclaurin/hanzigrid
```

## Usage
```javascript
const grid = require('@benmaclaurin/hanzigrid');

document.getElementById('grid').innerHTML = grid.generate(14, 10, options = {
  dashes: 20,
  opacity: 0.1,
  lines: 4
});
```
Generates a new grid with 14 rows and 10 columns. Options:
- dashes - dash density of guidelines
- opacity - opacity of guidelines
- lines - number of guidelines (2 or 4)

More options/features to come.

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