# sterm

> Watch and run postgres SQL files when update, using your own editor

Latest version **1.0.0** (published 2016-06-13) · MIT license · 0 weekly downloads

## Install

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

Provides the command `sterm`.

## 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 | 2016-06-13 |
| First published | 2016-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sparkida |
| Keywords | postgres, terminal, sql editor, watch |

## Links

- npm: https://www.npmjs.com/package/sterm
- npm.io page: https://npm.io/package/sterm

## Dependencies (2)

- [winston](https://npm.io/package/winston.md) ^2.2.0
- [chokidar](https://npm.io/package/chokidar.md) ^1.5.2

## 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

- 1.0.0 (latest) — 2016-06-13

## README

STerm
-----

Watch SQL files and run them when updated


Installing
----------

```
sudo npm install -g sterm
```


Setting up
----------

Make a directory to store database connections (currently only supports postrgres)

```
module.exports = {
    postgres: {
        host: 'vm.vertebrae.io',
        //port: 5432,
        user: 'postgres',
        database: 'dev_bistatsingest'
    }
};
```

Running
-------

CD to your SQL directory and run `sterm`


***Sterm will glob for all SQL files in the current and sub-directories and attach watchers to them.***

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