# webcommit

> Self-contained library to commit into GitHub: Oleg Mihailik

Latest version **0.1.1** (published 2024-01-20) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2024-01-20 |
| First published | 2024-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Oleg Mihailik |
| Maintainers | omihailik |
| Keywords | GitHub, octokit, git, commit |

## Links

- npm: https://www.npmjs.com/package/webcommit
- Homepage: https://oyin.bo/webcommit
- npm.io page: https://npm.io/package/webcommit

## Recent versions

- 0.1.1 (latest) — 2024-01-20
- 0.1.0 — 2024-01-20

## README

# webcommit

Self-contained library to commit into GitHub.

Author: [Oleg Mihailik](mailto:mihailik@gmail.com) [@oyin.bo](https://bsky.app/profile/oyin.bo).

Using with no dependencies:

```javascript
const prepare = await webcommit({
  owner: 'oyin-bo',
  repo: 'webcommit',
  branch: 'test',
  auth: prompt('GITHUB AUTH')
});

await prepare.put(
  'test.txt',
  'No dependencies: ' + new Date()
);

const commit = await prepare.commit('Committing with no dependencies at all');
alert('Committed \n' + JSON.stringify(commit, null, 2));
```

With Octokit:

```javascript

const octokit = new Octokit({ auth: prompt('GITHUB AUTH') });
const prepare = await webcommit({
  owner: 'oyin-bo',
  repo: 'webcommit',
  branch: 'test',
  octokit // <-- here
});

await prepare.put(
  'test.txt',
  'Using Octokit: ' + new Date()
);

const commit = await prepare.commit('Using Octokit');

alert('Committed \n' + JSON.stringify(commit, null, 2));

```

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