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