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

Usage in Deno

```typescript import { MIMEType } from "node:node__util.d.ts"; ```
Gets the essence of the MIME. This property is read only. Use `mime.type` or `mime.subtype` to alter the MIME. ```js import { MIMEType } from 'node:util'; const myMIME = new MIMEType('text/javascript;key=value'); console.log(myMIME.essence); // Prints: text/javascript myMIME.type = 'application'; console.log(myMIME.essence); // Prints: application/javascript console.log(String(myMIME)); // Prints: application/javascript;key=value ```

Type

string