Show HN: Px – Run commands across different JavaScript package managers

https://pxcli.com

px — Package Manager Executor - Run commands across different JavaScript package managers | Product Hunt

$npm rundev$pnpmdev$yarndev

$ px dev

How it works?

There are multiple JavaScript runtimes and package managers nowadays, and it's common to see developers using more than one in a daily basis.

Instead of switching tools when working on different projects, px allows you to run the same command across different package managers. It detects the package manager in use and runs the command for you!

Install TypeScript declarations

In TypeScript projects you always need to install the types for the packages you are using. This is required so TypeScript can understand the package and provide you with a better DX.

Instead of installing the TypeScript declarations manually, px allows you to install them with a single command. It detects if a package has a TypeScript declaration package and it automatically installs it for you!

$pnpm ibcryptjs$pnpm i-D @types/bcryptjs

$ px install bcryptjs

Keep me in the Loop

Get the latest updates and news for this project!

Agency Enterprise

We're Hiring!

Work with the world's most effective developers, data scientists, designers, and leaders who are shaping the future of humanity.

Join Us

{
"by": "ddanielcruz",
"descendants": 1,
"id": 40236161,
"kids": [
40237564
],
"score": 3,
"text": "Hi everyone!<p>I&#x27;m excited to announce px, an open source CLI application used to run commands across different JavaScript package managers!<p>Today we have multiple JavaScript runtimes and package managers, and it&#x27;s common for developers to work with more than one on a daily basis. We need to keep switching tools when working on different projects, which often results in using the wrong tool or command.<p>For this reason I created px, a small and lightweight CLI application that detects what package manager is being used and executes the command for you! This way, you don&#x27;t need to change your workflow when working on a different project, and you can focus on what is actually important.<p>It also comes with a few improvements on top of the package managers for a better developer experience, such as automatic TypeScript declarations (@types&#x2F;*) management and &quot;run&quot; prefix for npm scripts. You can find more information in the GitHub repository.<p>Please let me know what you think, your feedback would be much appreciated!",
"time": 1714657229,
"title": "Show HN: Px – Run commands across different JavaScript package managers",
"type": "story",
"url": "https://pxcli.com"
}
{
"author": null,
"date": null,
"description": "Command-line application used to run commands across different JavaScript package managers. Switch between npm, yarn and pnpm with ease, without changing your workflow.",
"image": "https://pxcli.com/og.png",
"logo": null,
"publisher": "px | Run commands across different JavaScript package managers",
"title": "px | Run commands across different JavaScript package managers",
"url": "https://pxcli.com/"
}
{
"url": "https://pxcli.com/",
"title": "px | Run commands across different JavaScript package managers",
"description": "$npm rundev$pnpmdev$yarndev$ px devHow it works?There are multiple JavaScript runtimes and package managers nowadays, and it's common to see developers using more than one in a daily basis. Instead of...",
"links": [
"https://pxcli.com/"
],
"image": "https://pxcli.com/og.png",
"content": "<div><section><p><a href=\"https://www.producthunt.com/posts/px-package-manager-executor?utm_source=badge-featured&amp;utm_medium=badge&amp;utm_souce=badge-px-package-manager-executor\" target=\"_blank\"><img src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=454998&amp;theme=dark\" alt=\"px — Package Manager Executor - Run commands across different JavaScript package managers | Product Hunt\" /></a></p></section><section><div><p><code>$<span>npm run</span><span>dev</span></code><code>$<span>pnpm</span><span>dev</span></code><code>$<span>yarn</span><span>dev</span></code></p><p><img src=\"https://pxcli.com/_next/static/media/how-it-works-arrows.45476f66.svg\" /></p><div><p><code><span>$ px dev</span></code></p><p><img src=\"https://pxcli.com/_next/static/media/px.9769a733.svg\" /></p></div></div><div><h2>How it works?</h2><div><p>There are multiple JavaScript runtimes and package managers nowadays, and it's common to see developers using more than one in a daily basis.</p><p> Instead of switching tools when working on different projects, <strong>px</strong> allows you to run the same command across different package managers. It detects the package manager in use and runs the command for you!</p></div></div></section><section><div><p><img src=\"https://pxcli.com/_next/static/media/typescript.76e81488.svg\" /></p><h2>Install TypeScript declarations</h2><div><p>In TypeScript projects you always need to install the types for the packages you are using. This is required so TypeScript can understand the package and provide you with a better DX.</p><p>Instead of installing the TypeScript declarations manually, <strong>px</strong> allows you to install them with a <strong>single command</strong>. It detects if a package has a TypeScript declaration package and it automatically installs it for you!</p></div></div><div><div><p><img src=\"https://pxcli.com/_next/static/media/typescript.76e81488.svg\" /></p><p><code>$<span>pnpm i</span><span>bcryptjs</span></code><code>$<span>pnpm i</span><span>-D @types/bcryptjs</span></code></p></div><p><img src=\"https://pxcli.com/_next/static/media/ts-declarations-arrow.192e8f60.svg\" /></p><div><p><code><span>$ px install bcryptjs</span></code></p><p><img src=\"https://pxcli.com/_next/static/media/px.9769a733.svg\" /></p></div></div></section><section><h2>Keep me in the Loop</h2><p>Get the latest updates and news for this project!</p></section><section><p><img alt=\"Agency Enterprise\" src=\"https://pxcli.com/_next/static/media/ae-studio.32db04f3.svg\" /></p><div><h2>We're Hiring!</h2><p>Work with the <strong>world's most effective developers</strong>, data scientists, designers, and leaders who are <strong>shaping the future of humanity.</strong></p><p><a href=\"https://ae.studio/join-us?utm_source=sds&amp;utm_medium=referral&amp;utm_campaign=px-cli&amp;utm_content=footer&amp;utm_term=3ff5251a-e107-4d47-bfb8-b2962debd252\" target=\"_blank\">Join Us</a></p></div></section></div>",
"author": "",
"favicon": "https://pxcli.com/favicon.ico",
"source": "pxcli.com",
"published": "",
"ttr": 34,
"type": "website"
}