Skip to content

Commit

Permalink
test on AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Jan 16, 2018
1 parent c63c81f commit acfb79d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![npm version](https://img.shields.io/npm/v/real-executable-path.svg)](https://www.npmjs.com/package/real-executable-path)
[![Build Status](https://travis-ci.org/shinnn/real-executable-path.svg?branch=master)](https://travis-ci.org/shinnn/real-executable-path)
[![Build status](https://ci.appveyor.com/api/projects/status/s8j59go8rxlkiq5c/branch/master?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/real-executable-path/branch/master)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/real-executable-path.svg)](https://coveralls.io/github/shinnn/real-executable-path)

Find the first instance of an executable in the PATH, with expanding all symbolic links
Expand Down Expand Up @@ -37,20 +38,12 @@ const realExecutablePath = require('real-executable-path');

*binName*: `string` (an executable name in the PATH)
*options*: `Object` ([`node-which` options](https://github.com/npm/node-which#options) except for `all`)
Return: [`Promise`](http://www.ecma-international.org/ecma-262/6.0/#sec-promise-constructor) instance
Return: `Promise<string>`

It finds the first instance of the given executable in the [PATH](http://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap08.html#tag_08_03) environment variable, expands all symbolic links and resolves the canonicalized absolute pathname.

```javascript
realExecutablePath('this_cmd_not_installed').catch(err => {
err.message; //=> 'not found: this_cmd_not_installed'
err.code; //=> 'ENOENT'
});
```

## Related projects

* [real-executable-path-callback](https://github.com/shinnn/real-executable-path-callback) – Traditional [Callback](http://thenodeway.io/posts/understanding-error-first-callbacks/)-style version
* [real-executable-paths](https://github.com/shinnn/real-executable-paths) – Returns all matched paths, instead of just the first one
* [real-which](https://github.com/shinnn/real-which) – CLI

Expand Down
9 changes: 9 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
image: Visual Studio 2017
platform: x64
shallow_clone: true
skip_tags: true
install:
- ps: Install-Product node Stable x64
- npm install
build: off
test_script: node test.js

0 comments on commit acfb79d

Please sign in to comment.