Prettier Logo
raw JSON → 1.0.3 verified Sat Apr 25 auth: no javascript maintenance
A package that provides SVG logo images for the Prettier code formatter in both dark and light variants. Current stable version 1.0.3, released 2020. No active development. Simple asset distribution with no code dependencies. Use for README badges or documentation headers rather than creating your own logo files.
Common errors
error Cannot find module 'prettier-logo' ↓
cause Trying to require('prettier-logo') in JavaScript code.
fix
This is not a code module. Access images via file path instead.
error Module not found: Error: Can't resolve 'prettier-logo' ↓
cause Importing in a JavaScript bundler (like webpack or Vite).
fix
Instead of importing, copy the image files to your public directory and reference them directly.
Warnings
gotcha Package is not a code module; it only contains static image assets. Do not try to require() or import it in JavaScript. ↓
fix Access the images directly via file system or static serving; no JavaScript import.
deprecated Package has not been updated since 2020 and may not reflect the latest Prettier branding. ↓
fix Consider using official Prettier logo from https://prettier.io/docs/en/logo.html
Install
npm install prettier-logo yarn add prettier-logo pnpm add prettier-logo Imports
- prettier-logo
npm install prettier-logo - logo images
Copy from node_modules/prettier-logo/images/
Quickstart
# Install the package
npm install prettier-logo
# The images are located in node_modules/prettier-logo/images/
# Copy them to your project's assets directory:
cp -r node_modules/prettier-logo/images/ ./public/assets/prettier-logo/
# Or use directly in HTML via a static file serving:
<!-- in your HTML file -->
<img src="/node_modules/prettier-logo/images/prettier-banner-dark.png" alt="Prettier Logo">