Socket
Socket
Sign inDemoInstall

calypso-query-decompiler

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    calypso-query-decompiler

Decompiles Calypso Query objects into CaQL queries.


Version published
Maintainers
1
Install size
60.6 kB
Created

Readme

Source

calypso-query-decompiler

Decompiles Calypso Query objects into CaQL queries.

Install

npm install calypso-query-decompiler

Example

var Query = require('calypso').Query;
var decompiler = require('calypso-query-decompiler');

var q = Query.of('companies')
  .ql('where name=@name and founded_year >= @year')
  .params({ name: 'Twitter', year: 1999 });

var decompiled = decompiler(q);

console.log(decompiled);

// Output: select * where ( name = "Twitter" and founded_year >= 1999 )

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