prettier-plugin-silverstripe weekly downloads statistics
By wernerkrauss · npm · Prettier plugins
Prettier plugin for Silverstripe CMS templates (.ss files)
prettier-plugin-silverstripe has 6 recorded weekly downloads on npm, an increase of 100% over the past 30 days, ranking #3206 of 3,247 tracked listings.
About prettier-plugin-silverstripe
Prettier Silverstripe Plugin
A Prettier plugin for formatting Silverstripe CMS templates (.ss files).
This plugin allows Prettier to recognize and safely handle Silverstripe template tags (e.g., <% if %>, <% loop %>, {$Variable}) by masking them before passing the content to the HTML parser and unmasking them afterwards.
Features
- Formats Silverstripe template files (
.ss). - Supports standard Silverstripe logic tags and variables.
- Works seamlessly with
prettier-plugin-tailwindcssif installed. - Preserves the structure of your templates while leveraging Prettier's HTML formatting power.
Installation
Install the plugin via npm:
npm install --save-dev prettier-plugin-silverstripe
Or via yarn:
yarn add -D prettier-plugin-silverstripe
Configuration
Add the plugin to your .prettierrc configuration file:
{
"plugins": ["prettier-plugin-silverstripe"],
"overrides": [
{
"files": "*.ss",
"options": {
"parser": "silverstripe"
}
}
]
}
Integration with Tailwind CSS
If you are using prettier-plugin-tailwindcss, this plugin will automatically detect it and use it to sort your Tailwind classes within the Silverstripe templates. Ensure both plugins are installed in your project.
{
"plugins": ["prettier-plugin-silverstripe", "prettier-plugin-tailwindcss"]
}
Known Limitations
"Tag Splitting"
Complex templates where HTML tags are split across Silverstripe logic tags can sometimes confuse the underlying HTML parser.
Example of what to avoid:
<% if $A %><div><% else %><section><% end_if %>
Content
<% if $A %></div><% else %></section><% end_if %>
Recommended approach: Instead of splitting tags, wrap the entire structure or use Includes to keep the HTML valid for the parser:
<% if $A %>
<div>Content</div>
<% else %>
<section>Content</section>
<% end_if %>
Development & Testing
If you want to contribute or run tests locally:
- Clone the repository.
- Run
npm install. - Run
npm testto execute the Jest test suite.
License
Need Help?
If you need some help with your Silverstripe project, feel free to contact me ✉️.
See you at next StripeCon 👋
Description from the npm listing.
- prettier
- prettier-plugin
- silverstripe
- template
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 (170)Similar npm Prettier plugins plugins
All 20 prettier-plugin-silverstripe 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-silverstripe. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.