lookpath
The minimum and most straightforward way to check if command exists and where the executable is.
Last updated 3 months ago by otiai10 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lookpath 
SYNC missed versions from official npm registry.

lookpath

CircleCI codecov npm version

To check if the command exists and where the executable file is.

const { lookpath } = require('lookpath');

const p = await lookpath('bash');
// "/bin/bash", otherwise "undefined"

Install

npm install lookpath

Background

Issues

Any feedback would be appreciated ;)

Current Tags

  • 1.0.6                                ...           latest (3 months ago)

12 Versions

  • 1.0.6                                ...           3 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           7 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 6
This Month 14
Last Day 6
Last Week 3
Last Month 61
Dependencies (0)
None
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |