# @kartotherian/makizushi

> professional maki chef

Latest version **3.0.2** (published 2022-02-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @kartotherian/makizushi
pnpm add @kartotherian/makizushi
yarn add @kartotherian/makizushi
bun add @kartotherian/makizushi
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2022-02-04 |
| First published | 2019-04-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Tom MacWright |
| Maintainers | mateusbs17, mooeypoo, stephanebisson, mdholloway, catrope, nyurik, pnorman, gehel |
| Keywords | maki, icon, custom |

## Links

- npm: https://www.npmjs.com/package/@kartotherian/makizushi
- Repository: https://github.com/mapbox/makizushi
- Issues: https://github.com/mapbox/makizushi/issues
- npm.io page: https://npm.io/package/@kartotherian/makizushi

## Dependencies (3)

- [xtend](https://npm.io/package/xtend.md) ~3.0.0
- [err-code](https://npm.io/package/err-code.md) 0.1.2
- [@kartotherian/blend](https://npm.io/package/@kartotherian/blend.md) ^2.0.1

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2022-02-04
- 3.0.1 — 2019-04-27

## README

[![Build Status](https://travis-ci.org/mapbox/makizushi.svg)](https://travis-ci.org/mapbox/makizushi)

# makizushi

Professional [Maki](https://www.mapbox.com/maki/) chef. This module produces custom markers based
on the Maki icon set, in custom sizes and colors. To do this, it chooses, tints, and flattens parts
of the image, using [node-blend](https://github.com/mapbox/node-blend).

## install

    npm install --save @kartotherian/makizushi

## updating icons

To use a newer version of Maki and extract the icons, you must have Inkscape installed locally.  Then, update the package and extract:

    npm install --also=dev
    npm update
    ./render.sh

## api

### `makizushi(options, callback)`

Options:

* `tint`: a color in rgb or rrggbb
* `symbol`: a Maki symbol name, or a number from 0 to 99
* `size`: one of `s`, `m`, or `l`
* `base`: `"pin"`
* `retina`: `true` or `false`, `true` will return a 2x resolution image

Callback: `(err, data)` in which err is an error if any, and data is a
buffer of image data.

## usage

```js
var makizushi = require('makizushi');

makizushi({
    base: 'pin',
    size: 'l',
    tint: '333',
    symbol: 'car',
    retina: true
}, function(err, buf) {
    if (err) throw err;
    fs.writeFileSync('marker.png', buf);
});
```

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