Socket
Book a DemoInstallSign in
Socket

is-executable

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-executable

cross-platform helper to determine whether a file can be executed

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
14K
-4.22%
Maintainers
1
Weekly downloads
 
Created
Source

is-executable.js

cross-platform helper to determine whether a file can be executed

npm module Build Status Build status

Why?

Node.js' built-in fs.access() is not useful enough for Windows use cases.

Usage

const isExe = require('is-executable');

isExe.sync('c:\\Windows\\notepad.exe'); // => true on Windows
isExe.sync('/usr/bin/bash'); // => true on OS X / Linux

API

isExe (filePath: String) => Promise

isExe.sync (filePath: String) => Boolean

FAQs

Package last updated on 17 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts