resolve-as-bin
Resolve a local npm package as binary path
Last updated 7 years ago by saltyshiomix .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install resolve-as-bin 
SYNC missed versions from official npm registry.

Resolve a local npm package as the absolute binary path

Install

$ npm install --save resolve-as-bin

Usage

import resolve from 'resolve-as-bin';

// npm installed package
console.log(resolve('rimraf')); // "/absolute/path/to/node_modules/.bin/rimraf(.cmd)"

// relative or absolute paths are supported
console.log(resolve('./some-binary')); // "/absolute/path/to/some-binary(.cmd)"
console.log(resolve('/absolute/path/another-binary')); // "/absolute/path/another-binary(.cmd)"

Current Tags

  • 2.1.0                                ...           latest (7 years ago)

8 Versions

  • 2.1.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.4.0                                ...           7 years ago
  • 1.3.0                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 23
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 0
Last Month 7
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE