Skip to main content
MIMEType.prototype.subtype - node__util.d.ts - Node documentation
property MIMEType.prototype.subtype

Usage in Deno

```typescript import { MIMEType } from "node:node__util.d.ts"; ```
Gets and sets the subtype portion of the MIME. ```js import { MIMEType } from 'node:util'; const myMIME = new MIMEType('text/ecmascript'); console.log(myMIME.subtype); // Prints: ecmascript myMIME.subtype = 'javascript'; console.log(myMIME.subtype); // Prints: javascript console.log(String(myMIME)); // Prints: text/javascript ```

Type

string