# condiments-cli

> A small cli tools

Latest version **1.0.0** (published 2021-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install condiments-cli
pnpm add condiments-cli
yarn add condiments-cli
bun add condiments-cli
```

Provides the command `cond`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-02-11 |
| First published | 2021-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 28.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tjcccc |
| Maintainers | tjcccc |
| Keywords | cli, tools, command, node, front-end |

## Links

- npm: https://www.npmjs.com/package/condiments-cli
- Repository: https://github.com/tjcccc/condiments-cli
- Issues: https://github.com/tjcccc/condiments-cli/issues
- npm.io page: https://npm.io/package/condiments-cli

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [lowdb](https://npm.io/package/lowdb.md) ^1.0.0
- [nanoid](https://npm.io/package/nanoid.md) ^3.1.20
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.1.0
- [commander](https://npm.io/package/commander.md) ^7.0.0
- [readline-sync](https://npm.io/package/readline-sync.md) ^1.4.10

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-02-11

## README

# Condiments

A small cli tools (based on nodejs environment)

version: 1.0.0

## Installation

```bash
npm install -g condiments
# or
yarn add -g condiments
```

After package installed, initialized it:

```bash
cond init
```

## Usage for Files

### Save Files

Save your file or folder to condiments library:

```bash
cond save path/your.file -a alias_name
cond save path/folder
```

Without option `-a (--alias)`, your will be ask to specify one after you run it.

### Load Files

After you saved your files. You can load them by alias anytime.

```bash
cond load alias_name -d ./
cond load myFolder
```

Without option `-d (--dist)`, files will be load to current directory.

You can use `-b (--bare)` to load folder files in flat way:

```bash
# fe-component folder: component.html, component.js, component.css

cond load fe-component -d ./my-component
# result: ./my-component/fe-component/...html, ...js, ...css

cond load fe-component -d ./my-component
# result: ./my-component/...html, ...js, ...css
```

### List Files

After files saved, you can list them to the terminal:

```bash
cond files ls
```

### Remove and Clean Files

Remove file or folder by its alias:

```bash
cond files rm alias_name
```

Remove all by use clean command:

```bash
cond files clean
```

## Usage for Scripts

For running script, only Linux / Unix shell and Powershell are supported now.

### Save Scripts

Save script code snippet:

```bash
cond script { ls -la } -a alias_name1
cond script "ping baidu.com" -a alias_name2
```

Save script file:

```bash
cond script script_a.ps1 -a script_a
cond script script_b.sh -a script_b
```

### Run Saved Scripts

```bash
cond run alias_name
```

### List Scripts

```bash
cond scripts ls
```

### Remove and Clean Scripts

Remove script by its alias:

```bash
cond scripts rm alias_name
```

Remove all by use clean command:

```bash
cond scripts clean
```

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