prettier-plugin-tempblot weekly downloads statistics
By crutchcorn · npm · Prettier plugins
Prettier plugin for Tempblot templates
prettier-plugin-tempblot has 9 recorded weekly downloads on npm, an increase of 80.0% over the past 30 days, ranking #2100 of 2,391 tracked listings.
About prettier-plugin-tempblot
Tempblot Prettier Plugin
Prettier plugin for formatting Tempblot (.blot) templates.
Installation
npm install --save-dev prettier prettier-plugin-tempblot
This package supports Prettier 3 and newer.
Configuration
Add the plugin to your Prettier configuration:
{
"plugins": ["prettier-plugin-tempblot"]
}
The plugin registers .blot files with the tempblot parser, so Prettier can format Tempblot files once the plugin is loaded.
Usage
Format Tempblot files with the Prettier CLI:
npx prettier --write "**/*.blot"
You can also pass the plugin explicitly:
npx prettier --plugin prettier-plugin-tempblot --write "**/*.blot"
Use the plugin programmatically with parser: "tempblot":
import * as prettier from "prettier";
import tempblotPlugin from "prettier-plugin-tempblot";
const formatted = await prettier.format(source, {
parser: "tempblot",
plugins: [tempblotPlugin],
});
What Gets Formatted
The plugin formats the Tempblot document structure and delegates supported block contents to Prettier's built-in parsers.
Supported blocks:
<setup>is formatted as TypeScript.<output>withoutlang, withlang="json", or withlang="jsonc"is formatted as JSON.<output lang="yaml">and<output lang="yml">are formatted as YAML.<output lang="html">is formatted as HTML.<output lang="css">is formatted as CSS.<output lang="javascript">and<output lang="js">are formatted as JavaScript.<output lang="typescript">and<output lang="ts">are formatted as TypeScript.
Unknown output languages are preserved as plain text after trimming surrounding whitespace.
Example
Input:
<!-- before -->
<setup>
const value={hello:"world",items:[1,2,3]}
</setup>
<output data-z="last" data-a="first" lang="json">
{"hello":"world","items":[1,2,3]}
</output>
Output:
<!-- before -->
<setup>
const value = { hello: "world", items: [1, 2, 3] };
</setup>
<output data-z="last" data-a="first" lang="json">
{ "hello": "world", "items": [1, 2, 3] }
</output>
Formatting Behavior
- Root-level blocks are separated by one blank line.
- Leading and trailing content outside Tempblot blocks is preserved after trimming surrounding whitespace.
- Attribute order is preserved.
- Empty blocks are printed with opening and closing tags on separate lines.
- Files are always written with a trailing newline.
- If an embedded parser cannot format a block, the original trimmed block contents are preserved.
Description from the npm listing.
- formatter
- prettier
- prettier-plugin
- tempblot
- templating
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-tempblot 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-tempblot. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.