# xqlint

> XQuery & JSONiq Quality Checker

Latest version **0.5.2** (published 2022-08-08) · Apache-2.0 license · 0 weekly downloads

## Install

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

Provides the command `xqlint`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.5.2 |
| Published | 2022-08-08 |
| First published | 2014-03-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.1.0 |
| Dependencies | 6 |
| Unpacked size | 6.2 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 52 |
| Author | William Candillon |
| Maintainers | wcandillon |
| Keywords | jsoniq, xquery, dev, cloud |

## Links

- npm: https://www.npmjs.com/package/xqlint
- Repository: https://github.com/wcandillon/xqlint
- Homepage: https://28.io/
- Issues: https://github.com/wcandillon/xqlint/issues
- npm.io page: https://npm.io/package/xqlint

## Dependencies (6)

- [q](https://npm.io/package/q.md) ~1.0.0
- [colors](https://npm.io/package/colors.md) ~0.6.2
- [lodash](https://npm.io/package/lodash.md) 4.17.21
- [final-fs](https://npm.io/package/final-fs.md) ~1.6.0
- [commander](https://npm.io/package/commander.md) ~2.3.0
- [update-notifier](https://npm.io/package/update-notifier.md) ~2.5.0

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

- 0.5.2 (latest) — 2022-08-08
- 0.5.1 — 2021-06-29
- 0.5.0 — 2018-05-22
- 0.4.1 — 2018-05-03
- 0.4.0 — 2017-04-04
- 0.3.4 — 2017-01-14
- 0.3.3 — 2016-11-03
- 0.3.2 — 2016-07-20
- 0.3.1 — 2016-02-02
- 0.3.0 — 2016-01-22
- 0.2.10 — 2016-01-14
- 0.2.9 — 2015-05-11
- 0.2.8 — 2015-04-10
- 0.2.7 — 2015-04-05
- 0.2.6 — 2015-03-01
- … 25 more at https://npm.io/package/xqlint/versions

## README

#XQLint
[![NPM version](http://img.shields.io/npm/v/xqlint.svg?style=flat)](http://badge.fury.io/js/xqlint)

## JSONiq & XQuery Code Quality Tool

XQLint parses XQuery & JSONiq files and returns errors and warnings based on static code analysis.
![example](http://i.imgur.com/86jU7C1.png)

## Installation

Install Node.js and NPM for your system (Mac, Windows or Linux). And install the command line tool using:

```bash
$ npm install xqlint -g
```
## Usage

### Lint

```bash
$ xqlint lint <path> [-s, --style-check <yes, no>]
```
![result](https://dl.dropboxusercontent.com/u/1487285/Screenshot%202014-04-07%2011.06.31.png)

### Print AST as XML

```bash
$ xqlint ast <path>
```

### Syntax Highlighting

```bash
$ xqlint highlight <path>
```

## Development

If you'd like to hack on xqlint itself:

```bash
git clone git@github.com:wcandillon/xqlint.git
cd xqlint
npm install
grunt
```

### Run tests

```bash
grunt vows
```

### Generate Parsers

```bash
grunt parsers
```

## Who is using this project?
* [28.io cli tool](https://github.com/28msec/28)
* [Atom Editor](https://atom.io/packages/language-jsoniq)
* [ACE, aka the Cloud9 editor](https://github.com/ajaxorg/ace), [view demo](http://try.zorba.io).
* [XQLint Grunt Task](https://github.com/wcandillon/grunt-xqlint)
* [XQLint Gulp Plugin](https://github.com/wcandillon/gulp-xqlint)
* [eXide](https://github.com/wolfgangmm/eXide), a web-based XQuery IDE for eXist-db, [view demo](http://exist-db.org/exist/apps/eXide/).
* [atom-existdb](https://github.com/wolfgangmm/atom-existdb), an Atom editor integration package for eXist-db.

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