Socket
Socket
Sign inDemoInstall

caql-decompiler

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    caql-decompiler

Decompiles a CaQL AST into a plaintext query.


Version published
Maintainers
1
Install size
59.3 kB
Created

Readme

Source

caql-decompiler

Decompiles a caql AST into a plaintext query.

Install

npm install caql-decompiler

Example

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

Keywords

FAQs

Last updated on 05 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc