xref: /freebsd/contrib/file/magic/Magdir/javascript (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1
2#------------------------------------------------------------------------------
3# $File: javascript,v 1.2 2019/08/05 10:34:26 christos Exp $
4# javascript:  magic for javascript and node.js scripts.
5#
60	search/1/w	#!/bin/node		Node.js script text executable
7!:mime application/javascript
80	search/1/w	#!/usr/bin/node		Node.js script text executable
9!:mime application/javascript
100	search/1/w	#!/bin/nodejs		Node.js script text executable
11!:mime application/javascript
120	search/1/w	#!/usr/bin/nodejs	Node.js script text executable
13!:mime application/javascript
140	search/1	#!/usr/bin/env\ node	Node.js script text executable
15!:mime application/javascript
160	search/1	#!/usr/bin/env\ nodejs	Node.js script text executable
17!:mime application/javascript
18# Hermes by Facebook https://hermesengine.dev/
19# https://github.com/facebook/hermes/blob/master/include/hermes/\
20# BCGen/HBC/BytecodeFileFormat.h#L24
210	lequad		0x1F1903C103BC1FC6	Hermes JavaScript bytecode
22>8	lelong		x			\b, version %d
23