PIbd-21_Danilov_V.V._Intern.../Lab2/node_modules/shebang-command
Владимир Данилов cd47298d6e Отчеты
2023-12-19 00:48:16 +04:00
..
index.js Отчеты 2023-12-19 00:48:16 +04:00
license Отчеты 2023-12-19 00:48:16 +04:00
package.json Отчеты 2023-12-19 00:48:16 +04:00
readme.md Отчеты 2023-12-19 00:48:16 +04:00

shebang-command Build Status

Get the command from a shebang

Install

$ npm install --save shebang-command

Usage

const shebangCommand = require('shebang-command');

shebangCommand('#!/usr/bin/env node');
//=> 'node'

shebangCommand('#!/bin/bash');
//=> 'bash'

API

shebangCommand(string)

string

Type: string

String containing a shebang.

License

MIT © Kevin Martensson