# @editorjs/inline-code

> InlineCode Tool for Editor.js

Latest version **1.5.2** (published 2025-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @editorjs/inline-code
pnpm add @editorjs/inline-code
yarn add @editorjs/inline-code
bun add @editorjs/inline-code
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.5.2 |
| Published | 2025-06-09 |
| First published | 2019-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 63 |
| Author | CodeX Team |
| Maintainers | codex-team |
| Keywords | codex editor, inline, code, editor.js, editorjs |

## Links

- npm: https://www.npmjs.com/package/@editorjs/inline-code
- Repository: https://github.com/editor-js/inline-code
- npm.io page: https://npm.io/package/@editorjs/inline-code

## Dependencies (1)

- [@codexteam/icons](https://npm.io/package/@codexteam/icons.md) ^0.3.2

## 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.5.2 (latest) — 2025-06-09
- 1.5.1 — 2024-07-21
- 1.5.0 — 2023-11-14
- 1.4.0 — 2022-11-30
- 1.3.1 — 2019-11-30
- 1.3.0 — 2019-03-01

## README

![](https://badgen.net/badge/Editor.js/v2.0/blue)

# InlineCode Tool

Inline Tool for marking code-fragments for the [Editor.js](https://ifmo.su/editor).

![](assets/example.gif)

## Installation

Get the package

```shell
yarn add @editorjs/inline-code
```

Include module at your application

```javascript
import InlineCode from '@editorjs/inline-code';
```

Optionally, you can load this tool from CDN [JsDelivr CDN](https://cdn.jsdelivr.net/npm/@editorjs/inline-code@latest)

## Usage

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

```javascript
var editor = EditorJS({
  ...
  
  tools: {
    ...
    inlineCode: {
      class: InlineCode,
      shortcut: 'CMD+SHIFT+M',
    },
  },
  
  ...
});
```

## Config Params

This Tool has no config params

## Output data

Marked text will be wrapped with a `span` tag with an `inline-code` class.

```json
{
    "type" : "text",
    "data" : {
        "text" : "Create a directory for your module, enter it and run <span class=\"inline-code\">npm init</span> command."
    }
}
```

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