# automatic-semicolon-insertion

> Insert missing semicolons, remove unneeded ones.

Latest version **3.0.6** (published 2022-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install automatic-semicolon-insertion
pnpm add automatic-semicolon-insertion
yarn add automatic-semicolon-insertion
bun add automatic-semicolon-insertion
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.6 |
| Published | 2022-06-07 |
| First published | 2016-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Brian Donovan |
| Maintainers | eventualbuddha |
| Keywords | asi, js, ast |

## Links

- npm: https://www.npmjs.com/package/automatic-semicolon-insertion
- Repository: https://github.com/eventualbuddha/automatic-semicolon-insertion
- Homepage: https://github.com/eventualbuddha/automatic-semicolon-insertion#readme
- Issues: https://github.com/eventualbuddha/automatic-semicolon-insertion/issues
- npm.io page: https://npm.io/package/automatic-semicolon-insertion

## Dependencies (1)

- [@babel/types](https://npm.io/package/@babel/types.md) ^7.18.4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.0.6 (latest) — 2022-06-07
- 3.0.5 — 2022-06-06
- 3.0.3 — 2022-06-06
- 3.0.2 — 2022-06-05
- 3.0.0 — 2022-06-04
- 2.0.6 — 2021-08-21
- 2.0.5 — 2019-09-26
- 2.0.4 — 2019-07-24
- 2.0.3 — 2019-02-16
- 2.0.2 — 2019-02-05
- 2.0.1 — 2018-11-21
- 2.0.0 — 2018-11-21
- 1.0.2 — 2016-05-25
- 1.0.1 — 2016-04-12
- 1.0.0 — 2016-04-12

## README

# automatic-semicolon-insertion

Insert missing semicolons, remove unneeded ones.

## Install

```sh
$ npm install automatic-semicolon-insertion
```

## Usage

```js
import * as asi from 'automatic-semicolon-insertion';
import { parse } from '@codemod/parser';

const source = 'let a = class {}'; // should have a semicolon after it

console.log(asi.process(source, parse(source)));

/*
prints:

{ insertions: [ { index: 16, content: ';' } ], removals: [] }
*/
```

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