MIMEType.subtype property | Node.js util module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:util/
MIMEType/
subtypePsubtype
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:util/
MIMEType/
subtypePsubtype
property
util.MIMEType.subtypesubtype: string
Gets and sets the subtype portion of the MIME.
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
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →