prettier-plugin-align-comments weekly downloads statistics
By hayyaun · npm · Prettier plugins
Utility for aligning trailing comments in Prettier-formatted code
prettier-plugin-align-comments has 3 recorded weekly downloads on npm, a decrease of 50.0% over the past 30 days, ranking #2248 of 2,322 tracked listings.
About prettier-plugin-align-comments
prettier-plugin-align-comments
Utility for aligning trailing comments in Prettier-formatted code.
Installation
npm install --save-dev prettier-plugin-align-comments
Usage
Create a wrapper file for your language plugin:
// prettier-solidity-aligned.mjs
import { wrapPlugin } from "prettier-plugin-align-comments";
import solidityPlugin from "prettier-plugin-solidity";
export default wrapPlugin(solidityPlugin, "solidity-ast");
Then reference it in your config:
// prettier.config.mjs
export default {
plugins: ["./prettier-solidity-aligned.mjs"],
alignColumn: -1,
alignMinConsecutive: 2,
};
Or with JSON config:
{
"plugins": ["./prettier-solidity-aligned.mjs"],
"alignColumn": -1,
"alignMinConsecutive": 2
}
Example
Before:
uint256 public x; // Short
address public owner; // Another line
bool public isActive; // Active flag
After:
uint256 public x; // Short
address public owner; // Another line
bool public isActive; // Active flag
Options
alignColumn (default: -1)
-1: Auto-align to longest line> 0: Fixed column number
alignMinConsecutive (default: 2)
- Minimum consecutive lines to trigger alignment
Programmatic API
import { alignComments } from "prettier-plugin-align-comments";
const pattern = /^(\s*)(.*?)([;,])\s+(\/\/.*)$/;
const aligned = alignComments(text, pattern, -1, 2);
License
MIT
Description from the npm listing.
- prettier
- prettier-plugin
- comments
- alignment
- formatting
- javascript
- typescript
- python
- rust
- go
- solidity
- java
- php
- ruby
- universal
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Prettier plugins plugins
All 20 prettier-plugin-align-comments alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/prettier-plugin-align-comments. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.