# @groupher/editor-alert

> alert Tool for Editor.js

Latest version **1.0.27** (published 2021-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @groupher/editor-alert
pnpm add @groupher/editor-alert
yarn add @groupher/editor-alert
bun add @groupher/editor-alert
```

## 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.0.27 |
| Published | 2021-09-19 |
| First published | 2019-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 55.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | groupher team |
| Maintainers | mydearxym |
| Keywords | codex editor, tool, code, editor.js, editorjs |

## Links

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

## Dependencies (1)

- [@groupher/editor-utils](https://npm.io/package/@groupher/editor-utils.md) ^0.2.54

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.27 (latest) — 2021-09-19
- 1.0.26 — 2021-09-19
- 1.0.25 — 2021-09-19
- 1.0.24 — 2021-09-18
- 1.0.23 — 2021-09-18
- 1.0.22 — 2021-09-18
- 1.0.21 — 2021-09-18
- 1.0.19 — 2021-09-14
- 1.0.18 — 2019-11-11
- 1.0.17 — 2019-11-10
- 1.0.16 — 2019-11-10
- 1.0.15 — 2019-11-10

## README

# Alert Tool

Provides Code Blocks for the [Editor.js](https://editorjs.io).

![alert-demo](https://user-images.githubusercontent.com/6184465/68541410-1ea36500-03da-11ea-9c0d-540a70a1d588.gif)


## Installation

### Install via NPM

Get the package

```shell
npm i --save-dev @groupher/editor-alert
```

Include module at your application

```javascript
const Alert = require('@groupher/editor-alert');
```

### Download to your project's source dir

1. Upload folder `dist` from repository
2. Add `dist/bundle.js` file to your page.

## Usage

Add a new Tool to the `tools` property of the Editor.js initial config.

```javascript
var editor = EditorJS({
  ...
  
  tools: {
    ...
    alert: Alert,
  },
  
  ...
});
```

## Output data

| Field     | Type     | Description          |
| --------- | -------- | -------------------- |
| title      | `string` | warning title         |
| desc  | `string` | warning desc |
| alert  | `string` | alert type |


```json
{
    "type" : "quote",
    "data" : {
        "title" : ""note",
        "desc" : "this is a warning",
        "type" : "warning"
    }
}
```

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