# google-sheet-watcher-cli

> Watches google sheets for you.

Latest version **1.0.3** (published 2017-03-13) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install google-sheet-watcher-cli
pnpm add google-sheet-watcher-cli
yarn add google-sheet-watcher-cli
bun add google-sheet-watcher-cli
```

Provides the command `gsheets`.

## 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.3 |
| Published | 2017-03-13 |
| First published | 2017-03-13 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Shubhank Srivastava |
| Maintainers | shubhank |
| Keywords | google, spreadsheets, cli, watcher |

## Links

- npm: https://www.npmjs.com/package/google-sheet-watcher-cli
- Repository: https://github.com/shubhank-srivastava/google-sheet-watcher-cli
- Homepage: https://github.com/shubhank-srivastava/google-sheet-watcher-cli#readme
- Issues: https://github.com/shubhank-srivastava/google-sheet-watcher-cli/issues
- npm.io page: https://npm.io/package/google-sheet-watcher-cli

## Dependencies (8)

- [async](https://npm.io/package/async.md) ^2.1.5
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.17
- [request](https://npm.io/package/request.md) ^2.79.0
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [google-auth-library](https://npm.io/package/google-auth-library.md) ^0.10.0

## 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.3 (latest) — 2017-03-13
- 1.0.2 — 2017-03-13
- 1.0.1 — 2017-03-13
- 1.0.0 — 2017-03-13

## README

# google-sheet-watcher-cli

This is a Node.js application with CLI that enables you to watch for changes to google speadsheets that are either public or privately owned and notifies any HTTP server on a given callback URL. 

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes -

### Prerequisites

You would need the following things -

1. [PM2](https://github.com/Unitech/pm2)
```
npm install pm2 -g
```

2. Google Service Account Key - Login to [Google Apps Console](console.developers.google.com), click on create credentials->service account key. Select a service account and key type as JSON and click on create. After you have downlaoded the JSON file save it as ./data/google-credentials.json

### Installing

```
npm i google-sheet-watcher-cli -g
```


## Commands Overview

```
gsheets import
```
Import spreadsheets of auhtorised google user. Remember that all the sheets shared at the email mentioned as client_email in the generated JSON file are ONLY the private files that will be imported.

```
gsheets add <URL>
```
Add a Google Spreadsheet (should be public or privately visible to client_email in JSON)
```
gsheets list
```
List all sheets that have been added/imported.
```
gsheets del <INDEX>
```
Remove a spreadsheet from the list.
```
gsheets watcher start/stop/restart
```
Starts the watcher to look for changes in any of the spreadsheets.
```
gsheets callback <URL>
```
Give a callback URL that gets a hit with details if there is change in any spreadsheet.
For Example - 
```
POST http://<your_domain>.com/callback
BODY
{ 
	url: 'https://spreadsheets.google.com/feeds/worksheets/1SLRMX0APFh_EVb7Y3ac4PFn3bM2ipnGx7NaxhAVE8Qk/private/full',
  	id: '1SLRMX0APFh_EVb7Y3ac4PFn3bM2ipnGx7NaxhAVE8Qk',
  	title: 'Interview candidates',
  	updated: '2017-03-13T18:51:58.957Z' 
}
```

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