prettier-plugin-tasm weekly downloads statistics
By weph · npm · Prettier plugins
Prettier plugin for Turbo Assembler (TASM) IDEAL mode syntax
prettier-plugin-tasm has 14 recorded weekly downloads on npm, a decrease of 93.7% over the past 30 days, ranking #3077 of 3,247 tracked listings.
About prettier-plugin-tasm
prettier-plugin-tasm
A Prettier plugin for Borland Turbo Assembler (TASM) source in IDEAL mode.
IDEAL
MODEL small
STACK 100h
DATASEG
Greeting DB 'Hello, world!', 13, 10, '$'
CODESEG
PROC Main
mov ax, @data ; set up DS
mov ds, ax
mov ah, 09h
mov dx, OFFSET Greeting
int 21h
mov ax, 4C00h ; exit with code 0
int 21h
ENDP Main
END Main
Disclaimer
I needed a formatter for TASM code and there's apparently no such thing. Because time is scarce and I've got enough on my plate already, I vibe-coded this whole project. And when I say "vibe-coded," I really mean it: I only skimmed the code. I don't think there are many people out there still writing Turbo Assembler IDEAL mode code, but if you're one of them and happen to stumble upon this project, I at least want you to know how it was built.
Installation
npm install --save-dev prettier prettier-plugin-tasm
Add the plugin to your Prettier configuration:
{
"plugins": ["prettier-plugin-tasm"]
}
Files ending in .asm, .inc and .ash are formatted with the tasm parser. For other extensions, add an
override:
{
"plugins": ["prettier-plugin-tasm"],
"overrides": [{ "files": "*.s", "options": { "parser": "tasm" } }]
}
Options
| Option | CLI flag | Default | Description |
|---|---|---|---|
tasmKeywordCase | --tasm-keyword-case | upper | Case of directives and keyword operators (PROC, DB, PTR) |
tasmMnemonicCase | --tasm-mnemonic-case | lower | Case of instruction mnemonics (mov, jmp) |
tasmRegisterCase | --tasm-register-case | lower | Case of register names (ax, ds, st) |
tasmMnemonicColumn | --tasm-mnemonic-column | 8 | Column where mnemonics and directives start |
tasmOperandColumn | --tasm-operand-column | 16 | Column where operands start |
tasmCommentColumn | --tasm-comment-column | 36 | Column where trailing comments start |
The case options accept upper, lower or preserve. Identifiers, numbers and strings are never changed. That
includes names declared in the same file that are spelled like a keyword, such as ARG page:BYTE or
LOCAL Width:WORD: labels, definitions, procedure arguments, local variables and macro parameters keep their case
wherever they appear.
Tabs
Alignment uses spaces by default. With Prettier's useTabs: true, tabs are used instead: each tab advances to the
next multiple of tabWidth, and a column that is not a multiple of tabWidth is rounded up to the next tab stop.
Prettier's default tabWidth of 2 makes for many short tabs, so set it to 8 when using tabs:
{
"plugins": ["prettier-plugin-tasm"],
"overrides": [{ "files": "*.asm", "options": { "useTabs": true, "tabWidth": 8 } }]
}
Formatting rules
-
Labels (
Start:,@@loop:,Entry::) start at column 0. An instruction on the same line is aligned to the mnemonic column. -
Instructions and plain directives (
ASSUME,LOCAL,ARG,USES,ALIGN,ORG, …) put the keyword at the mnemonic column and operands at the operand column. -
Structural directives (
IDEAL,MODEL,CODESEG,DATASEG,SEGMENT/ENDS,PROC/ENDP,STRUC/UNION/ENDS,MACRO/ENDM,LABEL,GROUP,END,P386, …), file-level declarations (PUBLIC,PUBLICDLL,EXTRN,GLOBAL,COMM,INCLUDE,INCLUDELIB) and listing directives (%TITLE,%NEWPAGE,%NOLIST, …) start at column 0, with their argument at the mnemonic column, since IDEAL mode puts the name after the keyword. -
Definitions (
Msg DB …,Max EQU …,Count = …) put the name at column 0. Consecutive definitions share their keyword and value columns. If a name or keyword in the block is too long, both columns move right in steps of the distance between the mnemonic and operand columns (8 by default):ColumnWidth EQU 8 RowHeight EQU 16 ScIndex EQU 03c4hInside
PROC…ENDPandMACRO…ENDM, definitions are indented to the mnemonic column and their other columns move along. A label in front of a definition stays at column 0. A single=assignment there, with no other definition directly above or below it, isn't aligned:plane = plane + 1. -
Structure instances (
Origin Point <0, 0>) are laid out like definitions, and macro invocations (PrintStr Greeting) like instructions, when the structure, union, record, enum, table, type or macro is defined in the same file. Their names keep their case. Macro arguments are kept exactly as written, because a macro may paste them anywhere, even into a string. -
Blocks:
REPT,IRP,IRPC,WHILEand conditional blocks (IF,IFDEF,ELSE,ENDIF, …) indent their body by 4 spaces per level (one tab withuseTabs). InsidePROCandMACRObodies the block directive sits at the mnemonic column; elsewhere it starts at column 0. Its arguments follow after a single space.ELSE,ENDIFandENDMline up with the line that opened the block. Labels stay at column 0, and trailing comments stay at the comment column.MACRObodies are formatted at the normal level, like a procedure body.IFDEF DEBUG DebugFlag DB 1 ENDIFPROC Copy REPT 4 movsd IF Padding GT 0 add di, Padding ENDIF ENDM ENDP ```…
Description from the npm listing.
- prettier
- prettier-plugin
- tasm
- turbo-assembler
- assembly
- x86
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 (156)Similar npm Prettier plugins plugins
All 20 prettier-plugin-tasm 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-tasm. First seen Oct 17, 2026; last successful collection Dec 6, 2026. See the methodology.