@backtickjs/prettier-plugin weekly downloads statistics
By backtickjs · npm · Prettier plugins
A Prettier plugin that formats the code inside Backtick.js client scripts
@backtickjs/prettier-plugin has 909 recorded weekly downloads on npm, an increase of 48.0% over the past 30 days, ranking #2096 of 3,247 tracked listings.
About @backtickjs/prettier-plugin
@backtickjs/prettier-plugin
A Prettier plugin that formats the code inside Backtick.js client scripts. Without it, Prettier leaves a cs`…` script as an opaque template string; with it, the script is formatted as TypeScript or JavaScript, like the rest of the file, with its splices kept in place.
Install
npm install --save-dev prettier typescript @backtickjs/prettier-plugin
Prettier 3 and TypeScript ^6.0.3 are peer dependencies: the plugin uses your project's TypeScript to find scripts. Install it in the package that runs Prettier, which resolves plugins from there.
Setup
Name the plugin in .prettierrc:
{
"plugins": ["@backtickjs/prettier-plugin"]
}
In VS Code, the Prettier extension reads the same config, so format-on-save formats scripts too.
The plugin applies to .ts, .tsx, .js and .jsx files. Other embedded templates, such as CSS or GraphQL, are formatted by Prettier as usual.
Example
Before:
const name = "Ada";
const sum = cs`() => {const a=1;return a+${name.length}}`;
export const Greeting = cs`<$View style={{ padding: 24 }}><$Text>Hi {${name}}</$Text><$Text>A second line long enough to break</$Text></$View>`;
After:
const name = "Ada";
const sum = cs`() => {
const a = 1;
return a + ${name.length};
}`;
export const Greeting = cs`(
<$View style={{ padding: 24 }}>
<$Text>Hi {$name}</$Text>
<$Text>A second line long enough to break</$Text>
</$View>
)`;
A splice of a bare identifier in code prints in its short form (${name} becomes $name); any other splice keeps its braces and is formatted as host code. A script that is a single JSX element gets parentheses only when it breaks across lines, and a trailing semicolon after a script's final expression is dropped. Formatting is idempotent.
Related
@backtickjs/core: thecstag- Backtick.js for VS Code: highlighting and type-checking inside scripts
- Quick start
License
MIT
Description from the npm listing.
- backtick
- react-native
- server-driven-ui
- server-components
- prettier
- prettier-plugin
- formatter
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 @backtickjs/prettier-plugin 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/@backtickjs/prettier-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.