executable

WebJar for executable

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

executable
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

executable
WebJar for executable
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/kevva/executable

Скачать executable

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/executable/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>executable</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/executable/
implementation 'org.webjars.npm:executable:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/executable/
implementation ("org.webjars.npm:executable:1.1.0")
'org.webjars.npm:executable:jar:1.1.0'
<dependency org="org.webjars.npm" name="executable" rev="1.1.0">
  <artifact name="executable" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='executable', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "executable" % "1.1.0"
[org.webjars.npm/executable "1.1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : meow jar [3.1.0,4)

Модули Проекта

Данный проект не имеет модулей.

executable Build Status

Check if a file is executable

Install

$ npm install --save executable

Usage

const executable = require('executable');

executable('bash').then(exec => {
	console.log(exec);
	//=> true
});

API

executable(file)

Returns a Promise for a boolean.

executable.sync(file)

Returns a boolean of whether the file is executable.

file

Type: string

Path of the file.

executable.checkMode(mode, [gid], [uid])

Returns a boolean of whether the mode passed as first argument means that the file is executable.

mode

Type: number

Property mode of fs.Stats instance returned by fs.stat() (or fs.statSync()) function.

gid, uid

Type: number

Respectively the group identity and user identity of the file. If not set, permissions will be evaluated without considering owner or group of the file.

Related

License

MIT © Kevin Mårtensson

Версии библиотеки

Версия
1.1.0