Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npex

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npex

Find npm package executables in node_modules/.bin recursively, and execute them.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npex

Find npm package executable in node_modules/.bin recursively, and execute the first occurrence found.

NPM version

Descriptions

This is similar to npx with following differences:

  1. npex tries to find executable in node_modules/.bin recursively until the first occurrence found (similar to the Node.js module resolution mechanism). E.g., npex jest will search following paths:

    • ~/my/git/engineforce/npex/node_modules/.bin/jest
    • ~/my/git/engineforce/node_modules/.bin/jest
    • ~/my/git/node_modules/.bin/jest
    • ~/my/node_modules/.bin/jest
    • ~/node_modules/.bin/jest
    • (globally installed jest)
  2. npex will not install anything if the executable is not found.

This extremely useful for monorepo, where your executables are hoisted to the monorepo root, but you want to execute them from sub-repos' location.

Install with npm

npm install -g npex

Usages

npex [--verbose] <command> [<args>...]

Examples

npex lerna ls
npex --verbose lerna ls

npex tsc
npex tsc --listFiles

npex jest
npex jest --help
npex jest --watch

History

  • 1.0.5 - Supports commands with user input such as jest --watch

Keywords

FAQs

Package last updated on 16 Oct 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc