# caql-decompiler

> Decompiles a CaQL AST into a plaintext query.

Latest version **0.8.0** (published 2015-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install caql-decompiler
pnpm add caql-decompiler
yarn add caql-decompiler
bun add caql-decompiler
```

## 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.8.0 |
| Published | 2015-02-05 |
| First published | 2014-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Swiber |
| Maintainers | kevinswiber |
| Keywords | caql, decompiler, ast |

## Links

- npm: https://www.npmjs.com/package/caql-decompiler
- Repository: https://github.com/kevinswiber/caql-decompiler
- Issues: https://github.com/kevinswiber/caql-decompiler/issues
- npm.io page: https://npm.io/package/caql-decompiler

## Dependencies (1)

- [caql](https://npm.io/package/caql.md) ^0.2.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.8.0 (latest) — 2015-02-05
- 0.7.0 — 2015-02-05
- 0.6.0 — 2014-10-09
- 0.5.0 — 2014-10-09
- 0.4.0 — 2014-10-08
- 0.3.0 — 2014-10-08
- 0.2.0 — 2014-10-08
- 0.1.0 — 2014-10-08

## README

# caql-decompiler

Decompiles a [caql](https://github.com/kevinswiber/caql) AST into a plaintext query.

## Install

`npm install caql-decompiler`

## Example

```js
var Parser = require('caql');
var CaqlDecompiler = require('caql-decompiler');
var decompiler = new CaqlDecompiler();

var query =   'select name, founded_year, total_money_raised as worth '
            + 'where founded_year >= 1999 and name not like "%air%" '
            + 'order by founded_year desc, name';

var ast = Parser.parse(query);

var ql = decompiler.decompile(ast);

console.log(ql);

// Output:
//
// select name, founded_year, total_money_raised as worth where 
// ( founded_year >= 1999 and name not like "%air%" ) order by founded_year desc, name asc
 
```

## License

MIT

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