# @idrinth/automatic-formatting

> A tool to reformat javascript projects on github

Latest version **1.3.0** (published 2017-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @idrinth/automatic-formatting
pnpm add @idrinth/automatic-formatting
yarn add @idrinth/automatic-formatting
bun add @idrinth/automatic-formatting
```

## 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.3.0 |
| Published | 2017-05-09 |
| First published | 2017-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 (+5 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Björn Büttner |
| Maintainers | idrinth |
| Keywords | formatting, prettier, server, github, format |

## Links

- npm: https://www.npmjs.com/package/@idrinth/automatic-formatting
- Repository: https://github.com/Idrinth/automatic-formatting
- Homepage: https://github.com/idrinth/automatic-formatting
- Issues: https://github.com/idrinth/automatic-formatting/issues
- npm.io page: https://npm.io/package/@idrinth/automatic-formatting

## Dependencies (10)

- [https](https://npm.io/package/https.md) *
- [crypto](https://npm.io/package/crypto.md) 0.0.*
- [express](https://npm.io/package/express.md) 4.15.*
- [nodegit](https://npm.io/package/nodegit.md) 0.19.*
- [fs-extra](https://npm.io/package/fs-extra.md) *
- [prettier](https://npm.io/package/prettier.md) 1.2.*
- [body-parser](https://npm.io/package/body-parser.md) 1.17.*
- [thread-sleep](https://npm.io/package/thread-sleep.md) 2.0.*
- [js-object-merge](https://npm.io/package/js-object-merge.md) 1.0.*
- [buffer-equal-constant-time](https://npm.io/package/buffer-equal-constant-time.md) 1.0.*

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2017-05-09
- 1.1.0 — 2017-05-08
- 1.0.1 — 2017-05-03
- 1.0.0 — 2017-05-03

## README

# Automatic Formatting [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
Building a nodejs javascript formatting service build on prettier, that can handle github webhooks and the github api to provide formatting during pullrequests.

This is currently not using as many promises as desired, but on the other hand the formatting is pretty quick.

## How does it work?

It reacts to three different eventgroups send via webhook:
- push: if the branch is within a pullrequest it'll be checked and if required formatted
- pull_request: changes the flag for formatting purposes
- delete: if a branch is deleted will also delete the checkout of it

## NPM
NPM is avaible as well, see https://www.npmjs.com/package/@idrinth/automatic-formatting.
Installation works as usual, so
```
npm install @idrinth/automatic-formatting
```
just remember to adjust the configuration afterwards, that user does not exist.

## Configuration

There are two relevant configurations. For one there is a configuration for the service, see config.json for example.
There is also a per-project option of configuring prettier and the include/exclude lists by using a .idrinth.automatic-formatting.json file in the root of your project.
Other keys in this file will be ignored.

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