{"id":17736709,"url":"https://github.com/parro-it/px","last_synced_at":"2025-03-31T19:17:30.749Z","repository":{"id":57137713,"uuid":"113370213","full_name":"parro-it/px","owner":"parro-it","description":"Posix cross platform npm scripts.","archived":false,"fork":false,"pushed_at":"2017-12-14T22:04:28.000Z","size":202,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T00:06:10.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parro-it.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-06T21:41:33.000Z","updated_at":"2024-04-15T00:06:10.178Z","dependencies_parsed_at":"2022-09-01T03:01:24.416Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/px","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fpx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fpx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fpx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fpx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/px/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523847,"owners_count":20791444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T00:24:09.354Z","updated_at":"2025-03-31T19:17:30.723Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"px banner\" src=\"https://raw.githubusercontent.com/parro-it/px/master/images/logo.png\"\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003ePosix cross platform npm scripts.\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003e\n  Write your npm scripts using posix bash syntax, cross platform\n  \u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  ⌘\n  \u003ca href=\"http://travis-ci.org/parro-it/px\"\u003e\n    \u003cimg alt=\"travis ci\" src=\"https://img.shields.io/travis/parro-it/px/master.svg?style=plastic\"\u003e\n  \u003c/a\u003e\n  ⌘\n  \u003ca href=\"https://npmjs.org/package/@posix/px\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/@posix/px.svg?style=plastic\"\u003e\n  \u003c/a\u003e\n  ⌘\n  \u003ca href=\"https://ci.appveyor.com/project/parro-it/px\"\u003e\n    \u003cimg alt=\"appveyor ci\" src=\"https://ci.appveyor.com/api/projects/status/ajja4gd5j5u221v9/branch/master?svg=true\"\u003e\n  \u003c/a\u003e\n  ⌘\n\u003c/p\u003e\n\n## Features\n\n#### Command sequences\n\n\u003e _Execute a set of command serially_\n\n```bash\ncommand1; command2; command3;\n```\n\n#### Logical or\n\n\u003e _Execute commandB only if execution of commandA fail (exit code \u003c\u003e 0)_\n\n```bash\ncommand1 || command2\n```\n\n#### Logical and\n\n\u003e _Execute commandB only if execution of commandA succeed (exit code = 0)_\n\n```bash\ncommand1 \u0026\u0026 command2\n```\n\n#### Setting environment variables\n\n\u003e _Set an environment variable (could replace the use of cross-env)_\n\n```bash\nDEBUG=cmd cmd\n```\n\n#### Asynchronous execution of a process\n\n\u003e _Run cmd1, cmd2 and cmd3 in parallel_\n\n```bash\ncmd1 \u0026 cmd2 \u0026 cmd3\n```\n\n## Usage\n\n1. Install `px`:\n\n```bash\n$ npm i @posix/px --save-dev\n```\n\n2. Add a line to your project `.npmrc` file to configure the script-shell config:\n\n```\nscript-shell = \"px\"\n```\n\n**_on windows you shall use px.cmd:_**\n\n```\npx.cmd\n```\n\n\u003e The setup process above will be automated using a `px --init` command.\n\n## See Also\n\n* [`noffle/common-readme`](https://github.com/noffle/common-readme)\n* [`bash-parser`](https://github.com/vorpaljs/bash-parser)\n\n## License\n\nMIT - © 2017 Andrea Parodi\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fpx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fpx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fpx/lists"}