# bumped-terminal

> Executes whatever terminal command inside as bumped plugin.

Latest version **0.8.1** (published 2020-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install bumped-terminal
pnpm add bumped-terminal
yarn add bumped-terminal
bun add bumped-terminal
```

## 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.8.1 |
| Published | 2020-04-02 |
| First published | 2015-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4 |
| Dependencies | 4 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kiko Beats |
| Maintainers | kikobeats |
| Keywords | bumped, plugin, terminal |

## Links

- npm: https://www.npmjs.com/package/bumped-terminal
- Repository: https://github.com/bumped/bumped-terminal
- Issues: https://github.com/bumped/bumped-terminal/issues
- npm.io page: https://npm.io/package/bumped-terminal

## Dependencies (4)

- [execspawn](https://npm.io/package/execspawn.md) ~1.0.1
- [lodash.omit](https://npm.io/package/lodash.omit.md) ~4.5.0
- [coffeescript](https://npm.io/package/coffeescript.md) ~2.5.1
- [strip-final-newline](https://npm.io/package/strip-final-newline.md) ~2.0.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.8.1 (latest) — 2020-04-02
- 0.8.0 — 2020-02-14
- 0.7.8 — 2019-03-27
- 0.7.7 — 2019-03-27
- 0.7.6 — 2018-10-28
- 0.7.5 — 2018-07-03
- 0.7.4 — 2018-06-20
- 0.7.3 — 2016-12-21
- 0.7.2 — 2016-08-27
- 0.7.1 — 2016-05-02
- 0.7.0 — 2016-05-02
- 0.6.3 — 2016-04-18
- 0.6.2 — 2016-03-24
- 0.6.1 — 2016-03-24
- 0.6.0 — 2016-03-24
- … 9 more at https://npm.io/package/bumped-terminal/versions

## README

# bumped-terminal

<h1 align="center">
  <br>
  <img src="http://i.imgur.com/DmMbFwL.png" alt="bumped">
  <br>
  <br>
</h1>

![Last version](https://img.shields.io/github/tag/bumped/bumped-terminal.svg?style=flat-square)
[![Dependency status](http://img.shields.io/david/bumped/bumped-terminal.svg?style=flat-square)](https://david-dm.org/bumped/bumped-terminal)
[![Dev Dependencies Status](http://img.shields.io/david/dev/bumped/bumped-terminal.svg?style=flat-square)](https://david-dm.org/bumped/bumped-terminal#info=devDependencies)
[![NPM Status](http://img.shields.io/npm/dm/bumped-terminal.svg?style=flat-square)](https://www.npmjs.org/package/bumped-terminal)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/kikobeats)

> Executes whatever terminal command inside bumped as `prerelease` or `postrelease` action.

Configure your .bumpedrc adding a entry for `bumped-terminal` as the follow example:


```cson
files: [
  'package.json'
]

plugins:

  prerelease:
    'Linting config files':
      plugin: 'bumped-finepack'

  postrelease:

    'Generating CHANGELOG file':
      plugin: 'bumped-changelog'

    'Commiting new version':
      plugin: 'bumped-terminal'
      command: 'git add CHANGELOG.md package.json && git commit -m "Release $newVersion"'
```

which produces the following output:

<p align="center"><img src="example.png" alt="example"></p>

## Install

> You don't need to install it! Bumped automatically resolve the plugins dependencies. However if you still want to do so must be globally accessible:

```bash
$ npm install -g bumped-terminal
```

The plugin provide you a serie of keywords for use in your commands as well:

* **$newVersion**: Alias for `bumped._version` (the current semver version).
* **$oldVersion**: Alias for `bumped._oldVersion` (the before semver version).

Additionally you can provide [child_process.spawn#options](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options)

## API

### command

*Required*
Type: `string`

Command to be executed. You can use the follow template words:

- `$newVersion`: The bumped version before the release.
- `$oldVersion`: The bumped version after the release.

### opts

Type: `object`

Additional options to be passed to [execspawn](https://github.com/AndreasMadsen/execspawn#execspawn).

## License

MIT © Bumped

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