# grunt-jssemicoloned

> Insert semicolons into JavaScript source.

Latest version **0.0.6** (published 2013-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-jssemicoloned
pnpm add grunt-jssemicoloned
yarn add grunt-jssemicoloned
bun add grunt-jssemicoloned
```

Provides the command `grunt-jssemicoloned`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2013-02-24 |
| First published | 2013-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kristof Neirynck |
| Maintainers | crydust |
| Keywords | gruntplugin, javascript, automatic, semicolon, insertion |

## Links

- npm: https://www.npmjs.com/package/grunt-jssemicoloned
- Repository: https://github.com/Crydust/grunt-jssemicoloned
- Issues: https://github.com/Crydust/grunt-jssemicoloned/issues
- npm.io page: https://npm.io/package/grunt-jssemicoloned

## Dependencies (1)

- [acorn](https://npm.io/package/acorn.md) git://github.com/Crydust/acorn.git#semicolon

## Recent versions

- 0.0.6 (latest) — 2013-02-24
- 0.0.4 — 2013-01-14
- 0.0.1 — 2013-01-13
- 0.0.0 — 2013-01-13

## README

# grunt-jssemicoloned

This is a [Grunt](http://gruntjs.com) task to validate JavaScript source.
It uses [Acorn](http://marijnhaverbeke.nl/acorn/) to look for possible syntax
errors and automatically inserts missing semicolons.

## How to Use It

First, install the [package](https://npmjs.org/package/grunt-jssemicoloned):

    npm install grunt-jssemicoloned

Modify your `Gruntfile.js` file to have the following line somewhere:

```javascript
grunt.loadNpmTasks('grunt-jssemicoloned');
```

If it has been installed correctly, running `grunt --help` should
include `jssemicoloned` in the list of available tasks.

Set the files to be validated, as part of Grunt configuration via the
new `jssemicoloned` key. As an example, `initConfig` in your `grunt.js`
might look like the following fragment:

```javascript
grunt.initConfig({
  pkg: '<json:package.json>',
  jssemicoloned: {
    files: ['*.js', 'lib/**/*.js', 'test/**/*.js']
  },
  test: {
    files: ['test/**/*.js']
  }
}
```

You can specify the files to be validated using the usual file pattern.
In the above examples, it will validate every `*.js` files in the main
directory, the `lib` directory, and the `test` directory. It will also alter
all files with missing semicolons.

Whenever you want the semicolon insertion task to run, just invoke it using:

    grunt jssemicoloned

It is not recommended to include the validation task in your default.

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