Registry / prettier-logo

prettier-logo

JSON →
library1.0.3jsnpmunverified

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.

npm install prettier-logo
INSTALL
IMPORT
SIG · PRETTIER-LOGO
P
prettier-logo
javascriptv1.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettier-logo
npm install prettier-logo
This is not a code library; it is an asset package. No JavaScript import needed.
logo images
Copy from node_modules/prettier-logo/images/
Images are located in the 'images' folder inside the package. Reference via relative path.

Installs the package and shows how to access the logo images for use in documentation or web pages.

# 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">
Debug
Known issues
gotchaPackage 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.
affects: >=1.0.0
deprecatedPackage 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
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'prettier-logo'
Trying to require('prettier-logo') in JavaScript code.
fix
This is not a code module. Access images via file path instead.
Module not found: Error: Can't resolve 'prettier-logo'
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.
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Bingbot
1
Resources
prettier-logo — npm install prettier-logo · libregistry