{"id":20326,"library":"prettier-logo","title":"Prettier Logo","description":"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.","status":"maintenance","version":"1.0.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install prettier-logo","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-logo","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-logo","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is not a code library; it is an asset package. No JavaScript import needed.","wrong":"","symbol":"prettier-logo","correct":"npm install prettier-logo"},{"note":"Images are located in the 'images' folder inside the package. Reference via relative path.","wrong":"","symbol":"logo images","correct":"Copy from node_modules/prettier-logo/images/"}],"quickstart":{"code":"# Install the package\nnpm install prettier-logo\n\n# The images are located in node_modules/prettier-logo/images/\n# Copy them to your project's assets directory:\ncp -r node_modules/prettier-logo/images/ ./public/assets/prettier-logo/\n\n# Or use directly in HTML via a static file serving:\n<!-- in your HTML file -->\n<img src=\"/node_modules/prettier-logo/images/prettier-banner-dark.png\" alt=\"Prettier Logo\">","lang":"javascript","description":"Installs the package and shows how to access the logo images for use in documentation or web pages."},"warnings":[{"fix":"Access the images directly via file system or static serving; no JavaScript import.","message":"Package is not a code module; it only contains static image assets. Do not try to require() or import it in JavaScript.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider using official Prettier logo from https://prettier.io/docs/en/logo.html","message":"Package has not been updated since 2020 and may not reflect the latest Prettier branding.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"This is not a code module. Access images via file path instead.","cause":"Trying to require('prettier-logo') in JavaScript code.","error":"Cannot find module 'prettier-logo'"},{"fix":"Instead of importing, copy the image files to your public directory and reference them directly.","cause":"Importing in a JavaScript bundler (like webpack or Vite).","error":"Module not found: Error: Can't resolve 'prettier-logo'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}