Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Language Reference Guide
    • Readme
    • Types in the Nu Language
      • Basic Types
        • Any
        • Boolean
        • Integer
        • Float
        • Filesize
        • Duration
        • Datetime
        • Range
        • String
        • Record
        • List
        • Table
        • Closure
        • Nothing
        • Binary
        • Glob
        • Cell-Path
      • Other Data Types

        • Types that cannot be used to declare variables
          • Path
        • Types which are not declarable
          • Error
          • CustomValue
          • Block
      • Type signatures
      • Commands that interact with types
    • Operators
    • Flow control
      • if/else
      • loop
      • while
      • match
      • try/catch
      • break
      • return
      • continue
    • Filters
      • each and par-each
      • Filters to select subsets of data
      • where and filter
      • Understanding the difference between get and select
    • Custom Commands
    • Declarations
    • Variable Scope
    • Strings and Text Formatting
    • Helpers and debugging commands
    • Pipelines
    • MIME Types for Nushell

MIME Types for Nushell

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.
Edit this page on GitHub
Contributors: Piepmatz
Prev
Pipelines