<commit_before># tmpin [![Build Status](https://travis-ci.org/sindresorhus/tmpin.svg?branch=master)](https://travis-ci.org/sindresorhus/tmpin)

> Adds stdin support to any CLI app that accepts file input

It pipes stdin to a tempfile and spawns the chosen app with the tempfile path as the first argument.


## Install

```sh
$ npm install --global tmpin
```


## Usage

```sh
$ tmpin --help

Usage
  $ echo <string> | tmpin <app> [<args>]

Example
  $ git diff | tmpin atom

# Note that the first arg to <app> will be set to the tempfile
```


## License<commit_msg>readme - add shell alias tip<commit_after># tmpin [![Build Status](https://travis-ci.org/sindresorhus/tmpin.svg?branch=master)](https://travis-ci.org/sindresorhus/tmpin)

> Adds stdin support to any CLI app that accepts file input

It pipes stdin to a tempfile and spawns the chosen app with the tempfile path as the first argument.


## Install

```sh
$ npm install --global tmpin
```


## Usage

```sh
$ tmpin --help

Usage
  $ echo <string> | tmpin <app> [<args>]

Example
  $ git diff | tmpin atom

# Note that the first arg to <app> will be set to the tempfile
```


## Tip

Create an alias in your `.zshrc`/`.bashrc`:

```sh
alias atom='tmpin atom'
# or more specific
alias gda='git diff | tmpin atom'
```


## License
{'fraction_non_alphanumeric': 0.12935708752904726, 'fraction_numerical': 0.0, 'mean_word_length': 3.802973977695167, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '279528', 'n_tokens_mistral': 469, 'n_tokens_neox': 439, 'n_words': 160}