prettier-plugin-jsdoc-type weekly downloads statistics
By ota-meshi (12 listings) · npm · Prettier plugins
Prettier plugin for JSDoc type annotations
prettier-plugin-jsdoc-type has 2,780 recorded weekly downloads on npm, a decrease of 13.2% over the past 30 days, ranking #1770 of 3,247 tracked listings.
About prettier-plugin-jsdoc-type
prettier-plugin-jsdoc-type
Prettier plugin for formatting JSDoc type annotations.
This plugin is in the experimental stages of development.
Features
- Formats JSDoc type annotations to a consistent TypeScript style.
- Supports various JSDoc type syntax that TypeScript can parse, including object types, arrays, and unions.
Example:
Input:
<!-- prettier-ignore-start -->/** @type {{a?:number,b?:string}} */
const obj = {}
/**
* @param {{
* type?:string,
* a?:number
* b?:string}} n
* @returns {n is Foo}
*/
function fn (n) {
// do something
}
/** @import {Foo}from'bar' */
<!-- prettier-ignore-end -->
Output:
/** @type {{ a?: number; b?: string }} */
const obj = {};
/**
* @param {{
* type?: string;
* a?: number;
* b?: string;
* }} n
* @returns {n is Foo}
*/
function fn(n) {
// do something
}
/** @import { Foo } from "bar" */
Installation
npm install --save-dev prettier-plugin-jsdoc-type
Usage
You can use this plugin with Prettier by adding it to your Prettier configuration file:
{
"plugins": ["prettier-plugin-jsdoc-type"]
}
What is the difference with prettier-plugin-jsdoc?
This plugin is focused on formatting JSDoc type annotations, while prettier-plugin-jsdoc is focused on formatting JSDoc comments.
This plugin supports some more JSDoc type definition syntax than prettier-plugin-jsdoc, such as @import and @returns {foo is Foo}.
This plugin can also be combined with prettier-plugin-jsdoc.
Description from the npm listing.
- jsdoc
- prettier-plugin
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-jsdoc-type 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-jsdoc-type. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.