# git-content

> get, create, update and delete action on files inside github repo.

Latest version **0.0.4** (published 2020-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-content
pnpm add git-content
yarn add git-content
bun add git-content
```

## 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-04-07 |
| First published | 2020-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nir Adler |
| Maintainers | niradler55 |
| Keywords | git, content, storage, cli |

## Links

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

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^15.3.1
- [@octokit/rest](https://npm.io/package/@octokit/rest.md) ^17.1.4

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

- 0.0.4 (latest) — 2020-04-07
- 0.0.3 — 2020-04-06
- 0.0.2 — 2020-04-06
- 0.0.1 — 2020-04-06

## README

# git-content

get, create, update and delete action on files inside github repo.

## Installation

```bash
npm i -g git-content
```

### Usage

#### CLI

```bash
git-content help

git-content create --path="test3.json" --content="awesome content" --auth="XXXXXXXXXXX" --owner="niradler" --branch="master" --repo="config"

git-content get --path="test3.json" --auth="XXXXXXXXXXX" --owner="niradler" --branch="master" --repo="config"

git-content update --path="test3.json" --content="new awesome content" --auth="XXXXXXXXXXX" --owner="niradler" --branch="master" --repo="config"

git-content delete --path="test3.json" --auth="XXXXXXXXXXX" --owner="niradler" --branch="master" --repo="config"
```

#### Code

```js
const { Store, Model } = require("git-content");

const store = new Store({ owner, repo, auth, branch });
const model = new Model(store, path);
const { text } = await model.get();
```

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