Home Explore Blog CI



nushell

lang-guide/chapters/mime_types.md
83601280b7448e03cacdc4a5da6d3a887e1f4cd00b53e0880000000300000404
# MIME Types for Nushell

[MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types),
also known as media or content types, are used to identify data formats.
Since Nushell is not officially recognized by the _Internet Assigned Numbers
Authority (IANA)_, all Nushell MIME types are prefixed with "-x" to indicate
their unofficial status.
Despite this, some tools still rely on MIME types to identify data formats.

The three MIME types we define and recommend for consistent use are:

- **`application/x-nuscript`:**
  This type is used for Nushell scripts and is similar to
  `application/x-shellscript` for Bash scripts.
  The "application" type is used because these scripts can be executable if the
  correct shebang is included.
- **`text/x-nushell`:**
  This is an alias for `application/x-nuscript` but emphasizes that the script
  is human-readable, similar to `text/x-python`.
- **`application/x-nuon`:**
  This type is used for the [NUON data format](../../book/loading_data.html#nuon).

Chunks
1b28ae2e (1st chunk of `lang-guide/chapters/mime_types.md`)
Title: MIME Types in Nushell
Summary
Nushell uses MIME types (also known as media or content types) to identify data formats. Since Nushell is not officially recognized by IANA, all Nushell MIME types are prefixed with "-x" to indicate their unofficial status. The three MIME types defined and recommended for consistent use are: `application/x-nuscript` for Nushell scripts, `text/x-nushell` as an alias for `application/x-nuscript` emphasizing human-readability, and `application/x-nuon` for the NUON data format.