vendor/file: upgrade from 5.32 to 5.38
[dragonfly.git] / contrib / file / magic / Magdir / javascript
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 #
6 0       search/1/w      #!/bin/node             Node.js script text executable
7 !:mime application/javascript
8 0       search/1/w      #!/usr/bin/node         Node.js script text executable
9 !:mime application/javascript
10 0       search/1/w      #!/bin/nodejs           Node.js script text executable
11 !:mime application/javascript
12 0       search/1/w      #!/usr/bin/nodejs       Node.js script text executable
13 !:mime application/javascript
14 0       search/1        #!/usr/bin/env\ node    Node.js script text executable
15 !:mime application/javascript
16 0       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
21 0       lequad          0x1F1903C103BC1FC6      Hermes JavaScript bytecode
22 >8      lelong          x                       \b, version %d