# toush

> power touch cli command. mkdir, touch, open in IDE in one go.

Latest version **0.0.4** (published 2020-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install toush
pnpm add toush
yarn add toush
bun add toush
```

Provides the command `toush`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2020-03-20 |
| First published | 2020-03-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Henry Kemp |
| Maintainers | genisense |
| Keywords | cli, touch, mkdir, ide, vscode, glob |

## Links

- npm: https://www.npmjs.com/package/toush
- Repository: https://github.com/genisense/toush
- Homepage: https://github.com/genisense/toush#readme
- Issues: https://github.com/genisense/toush/issues
- npm.io page: https://npm.io/package/toush

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2020-03-20
- 0.0.3 — 2020-03-18
- 0.0.2 — 2020-03-17

## README

# toush - a touch++

    $ toush src/engines/thomas.js,henry.js src/controllers/fat.js,thin.js

toush does three things in one command:

1. Creates directories from the paths given.
2. Creates the files.
3. Opens the files in your IDE of choice.

## install:

    $ npm install -g toush

## Why toush ?

- Primarily intended to help make better tutorials. Its great when tutorials provide mkdir and touch snippets - less thought impedance than mouse clicking in IDE. Toush is three times faster than mkdir,touch, open. Also works for Windows.

- Secondarily, power user way of creating/opening files during development. Try it, you'll never go back!

## Examples:

Just open all existing files in a dir:

    $ toush src/engines/*

Open all existing .ts files in all sub-directories:

    $ toush src/**/*.ts

Create/open multiple files per directory (comma separted files per dir):

    $ toush src/engines/thomas.js,henry.js src/controllers/fat.js,thin.js

Tradiltional equivalent of the above (dont need to do it this verbose way anymore!)

    $ toush src/engines/thomas.js src/engines/henry.js src/controllers/fat.js src/controllers/thin.js

Should you want to create empty directories, end param string with fwd slash:

    $ toush src/empty/dir/for/later/  ./and/another/  and-make/this-file-by-the-by.js

# configure

By default '`code`' is executed to open the files in [vscode](https://github.com/microsoft/vscode). To change this, say to '`open`' for [Theia IDE](https://github.com/eclipse-theia/theia) ([Apache Che](https://www.eclipse.org/che/), [Gitpod](https://github.com/gitpod-io/gitpod)):

    toush -c open

This creates a `toushrc` file in your current directory. You can simply move the file to any higher up directory to share config across different projects.

## Changelog

### V0.0.4

- Set how to open IDE with `toush -c`. Move touchrc file to parent directory to reuse across projects.
  Tested with Theia IDE - gitpod, Apache Che ( set to `open`). For vscode set to `code`.
- Guards against destructive abuse.

### V0.0.3

- Switched to Typescript.

### V0.0.2

- Updated with globbing.

- Run tested ok on mac, linux, windows.

### v0.0.1

- initial release
- Why as a global npm not just a bash script/binary etc? - portable, ease of installation, ease of extension.

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