Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ynpx

bluelovers1.6kISC2.1.6TypeScript support: included

npx equivalent in yarn

yarn, run, local, bin, scripts, script, package, project, npx, dlx, npm, npm exec, shell, npm bin, cli, ypx, ynpx, yypx, yarn-tool, npm run, yarn run, alias, global

readme

.github/workflows/test.yml

README.md

`npx` equivalent in yarn

this module name is ynpx not ypx


fist run (when not have cache), need a long wait

image

second run only need 5.x sec

image_1

install

npm install -g ynpx

Usage

ynpx -p esm -p mocha --prefer-offline -- "!(node_modules)/**/*.{test,spec}.{ts,tsx}"
ynpx jest

ynpx -q cowsay -- "workflows test"

image_2

alias

after install u can use alias name for start it

ynpx mocha
yypx mocha
ypx mocha

other yarn tools

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.1.6 (2022-10-30)

📦 Code Refactoring

📌 Dependencies

🔖 Miscellaneous

2.1.5 (2022-08-28)

✨ Features

🚨 Tests

  • snapshot: update snapshot (6f7fbd8)

2.1.4 (2022-08-16)

📌 Dependencies

2.1.3 (2022-07-07)

♻️ Dependencies

2.1.2 (2022-02-06)

♻️ Chores

2.1.1 (2021-08-26)

🐛 Bug Fixes

  • Error: Cannot find module 'err-indent/index' (fd7f482)

✨ Features

  • make error always has exitCode (1646691)
  • debug: try record all error (d74f2b6)

📦 Code Refactoring

🚨 Tests

🛠 Build System

♻️ Chores

  • deps: update deps and use tslib (6e0fc19)

🔖 Miscellaneous

2.0.10 (2021-06-22)

♻️ Chores

2.0.9 (2021-06-05)

🚨 Tests

♻️ Chores

2.0.8 (2021-05-17)

🔖 Miscellaneous

2.0.7 (2021-02-09)

♻️ Chores

🔖 Miscellaneous

2.0.6 (2020-07-30)

♻️ Chores

2.0.5 (2020-07-23)

♻️ Chores

2.0.4 (2020-07-18)

✨ Features

2.0.3 (2020-07-18)

🐛 Bug Fixes

  • allow -p yo -p generator-eslint-typescript yo -- eslint:plugin (645cede)

2.0.2 (2020-07-18)

Note: Version bump only for package ynpx

2.0.1 (2020-07-18)

✨ Features

🛠 Build System

BREAKING CHANGES

  • not allow pass base option after cmd

1.0.33 (2020-06-17)

🐛 Bug Fixes

  • try avoid Authentication failed when start lerna with ynpx (abd13ff)

♻️ Chores

🔖 Miscellaneous

1.0.32 (2020-06-15)

♻️ Chores

Miscellaneous

1.0.31 (2020-06-10)

Note: Version bump only for package ynpx

1.0.30 (2020-06-10)

Note: Version bump only for package ynpx

1.0.29 (2020-05-19)

Bug Fixes

1.0.28 (2020-05-19)

Bug Fixes

1.0.27 (2020-04-10)

Note: Version bump only for package ynpx