name: nerdfont-icons
description: Resolve Nerd Font nf-* names to verified code points, glyphs, and dev-language escapes. Use when matching Nerd Font icons to hex/Unicode/JS/CSS/HTML/etc.
license: MIT
compatibility: "Requires Node.js 18+ with fetch"
Empty result → auto-refresh from Nerd Fonts cheat sheet → retry.
Multiple results → show choices; do not invent.
---
name: nerdfont-icons
description: Resolve Nerd Font nf-* names to verified code points, glyphs, and dev-language escapes. Use when matching Nerd Font icons to hex/Unicode/JS/CSS/HTML/etc.
license: MIT
compatibility: "Requires Node.js 18+ with fetch"
---
# Nerd Font Icons
Never guess.
Use script.
```bash
node scripts/get-nerdfont-codepoint.js <query> [format]
```
Formats:
```txt
hex codepoint glyph js html java json-escape css css-content
python rust go c cpp swift lua shell printf toml yaml vim elisp wezterm
json all
```
Examples:
```bash
node scripts/get-nerdfont-codepoint.js nf-md-brain all
node scripts/get-nerdfont-codepoint.js brain all
node scripts/get-nerdfont-codepoint.js nf-cod-account wezterm
```
Rules:
- Do not read DB unless debugging.
- DB:
`references/nerdfont-icons.txt.br` Brotli text, `name<TAB>hex`.
- Empty result → auto-refresh from Nerd Fonts cheat sheet → retry.
- Multiple results → show choices; do not invent.