# path-command

> execute command for every path

Latest version **0.0.3** (published 2016-04-28) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install path-command
pnpm add path-command
yarn add path-command
bun add path-command
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-04-28 |
| First published | 2016-04-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | russianidiot |
| Keywords | path |

## Links

- npm: https://www.npmjs.com/package/path-command
- Repository: https://github.com/russianidiot/path-command.sh.cli
- Homepage: https://github.com/russianidiot/path-command.sh.cli#readme
- Issues: https://github.com/russianidiot/path-command.sh.cli/issues
- npm.io page: https://npm.io/package/path-command

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-04-28

## README

![bash](https://img.shields.io/badge/language-bash-blue.svg)[![Platform (Linux, OS X)](https://img.shields.io/badge/platform-Linux,%20OS%20X-green.svg?style=flat-square)]()

[![Build Status](https://travis-ci.org/russianidiot/path-command.sh.cli.svg?branch=master)](https://travis-ci.org/russianidiot/path-command.sh.cli)[![drone.io](https://drone.io/github.com/russianidiot/path-command.sh.cli/status.png)](https://drone.io/github.com/russianidiot/path-command.sh.cli)[![Wercker](https://img.shields.io/wercker/ci/russianidiot/path-command.sh.cli.svg)](https://app.wercker.com/#applications/None/)

[![PyPI](https://img.shields.io/pypi/v/path-command.svg)](https://pypi.python.org/pypi/path-command)
[![PyPI](https://img.shields.io/pypi/dm/path-command.svg)](https://pypi.python.org/pypi/path-command)
[![PyPI](https://img.shields.io/pypi/dd/path-command.svg)](https://pypi.python.org/pypi/path-command)

[![npm](https://img.shields.io/npm/v/path-command.svg)](https://www.npmjs.com/package/path-command)[![npm](https://img.shields.io/npm/dm/path-command.svg)](https://www.npmjs.com/package/path-command)[![npm](https://img.shields.io/npm/dt/path-command.svg)](https://www.npmjs.com/package/path-command)

<p align="center">
	<b>execute command for every path</b>
</p>

#### Install

pip: 
`[sudo] pip install path-command`

npm: 
`npm install -g path-command`

#### Features

*	command: executable/script or bash function (export required)
*	set current directory to path if path is directory
*	pass path to command if path is file
*	exit on error

#### Usage

```shell
usage: path-command command path ...
```

#### Example

```shell
$ command="python setup.py install"
$ set -- path/to/repo1 path/to/repo2
$ path-command "$command" "$@"

# bash function (super fast)
$ function func() { ... }
$ export -f func 
$ command="func"
$ path-command "$command" "$@"
```

[Examples/](https://github.com/russianidiot/path-command.sh.cli/tree/master/Examples)

Sources:
*	[scripts/path-command](https://github.com/russianidiot/path-command.sh.cli/blob/master/scripts/path-command)

Feedback
[![GitHub issues](https://img.shields.io/github/issues/russianidiot/path-command.sh.cli.svg)](https://github.com/russianidiot/path-command.sh.cli/issues)
[![Join the chat at https://gitter.im/russianidiot/path-command.sh.cli](https://badges.gitter.im/russianidiot/path-command.sh.cli.svg)](https://gitter.im/russianidiot/path-command.sh.cli)
[![GitHub followers](https://img.shields.io/github/followers/russianidiot.svg?style=social&label=Follow)](https://github.com/russianidiot)

* * *

<p align="center">
	Python packages <a href="http://russianidiot.github.io/python/">russianidiot.github.io/python/</a>
	<img src="http://russianidiot.github.io/images/python/16.png" />
</p>
<p align="center">
	cli packages <a href="http://russianidiot.github.io/python/">russianidiot.github.io/cli/</a>
<img src="http://russianidiot.github.io/images/cli/16.png" />
</p>

<p align="center">
	repos list <a href="http://russianidiot.github.io/">russianidiot.github.io</a> <img src="http://russianidiot.github.io/images/star/16.png" />
</p>

<p align="center">
	<a href="https://raw.githubusercontent.com/russianidiot/path-command.sh.cli/master/README.md">README.md</a> generated with <a href="https://github.com/russianidiot/readme-mako.py">readmemako.py</a> (python+<a href="http://www.makotemplates.org/">mako</a> templates) and <a href="https://github.com/russianidiot-dotfiles/.README">.README</a> dotfiles 
<img src="http://russianidiot.github.io/images/book/16.png">
</p>

---
_Source: https://npm.io/package/path-command · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
