# code-icons

> File specific icons for the browser from Atom File-icons, https://github.com/file-icons/atom

Latest version **1.0.5** (published 2021-04-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install code-icons
pnpm add code-icons
yarn add code-icons
bun add code-icons
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-04-21 |
| First published | 2021-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 410.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ken Mueller |
| Maintainers | kenmueller |
| Keywords | javascript, nodejs, icons, octicons, mfizz, devicons, code icons, code |

## Links

- npm: https://www.npmjs.com/package/code-icons
- Repository: https://github.com/kenmueller/code-icons
- Homepage: https://github.com/kenmueller/code-icons#readme
- Issues: https://github.com/kenmueller/code-icons/issues
- npm.io page: https://npm.io/package/code-icons

## 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

- 1.0.5 (latest) — 2021-04-21
- 1.0.4 — 2021-04-21
- 1.0.3 — 2021-04-21
- 1.0.2 — 2021-04-21
- 1.0.1 — 2021-04-21
- 1.0.0 — 2021-04-21

## README

# code-icons

> File specific icons for the browser from Atom File-icons, https://github.com/file-icons/atom

[![Hyperapp demo](https://img.shields.io/badge/File%20icons%20demo-%E2%86%92-9D6EB3.svg?style=flat-square)](https://websemantics.github.io/file-icons-js)

<img alt="Icon previews" width="850" src="https://raw.githubusercontent.com/file-icons/atom/6714706f268e257100e03c9eb52819cb97ad570b/preview.png" />

## Install

```bash
npm i code-icons
```

## Include CSS styles

```js
import 'code-icons/styles.css'
```

## Get `className`

```js
import icons from 'code-icons'

const className = icons.getClass('src/app.js')
const className = icons.getClassWithColor('README.md')

document.body.innerHTML += `<span class="${className}"></span>`
```

## Resources

- [Atom File Icons](https://github.com/file-icons/atom), file specific icons for improved visual grepping.
- [Markdown Browser Plus](https://github.com/websemantics/markdown-browser-plus), Github flavoured, local file browser for markdown docs.

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