.jsm JavaScript program

Text & source code

MIME typetext/javascript
DescriptionJavaScript program
CategoryText & source code
Signature (magic bytes)23 21 20 2F 62 69 6E 2F 67 6A 73 (#! /bin/gjs)
23 21 20 2F 75 73 72 2F 62 69 6E 2F 67 6A 73 (#! /usr/bin/gjs)
23 21 2F 62 69 6E 2F 67 6A 73 (#!/bin/gjs)
Based onapplication/x-executable, text/plain
Other extensions.js, .mjs

Frequently asked questions

What is a .jsm file?

A .jsm file is a “JavaScript program” (MIME type text/javascript).

How do I open a .jsm file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .jsm file?

By the bytes at the start of the file, the signature (magic bytes): 23 21 20 2F 62 69 6E 2F 67 6A 73 (#! /bin/gjs), 23 21 20 2F 75 73 72 2F 62 69 6E 2F 67 6A 73 (#! /usr/bin/gjs) and 23 21 2F 62 69 6E 2F 67 6A 73 (#!/bin/gjs). On Linux and macOS, file --mime-type example.jsm checks the real type regardless of the extension.

Which format is .jsm based on?

Technically a .jsm file is a subtype of “Executable” (application/x-executable), so programs for that base format can often read it too.

Which MIME type belongs to .jsm?

The MIME type is text/javascript. In the Apache web server: AddType text/javascript .jsm; in nginx: types { text/javascript jsm; }.

Nearby entries