Socket
Socket
Sign inDemoInstall

jfrog-aql

Package Overview
Dependencies
50
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jfrog-aql

Artifactory Query Language library


Version published
Weekly downloads
69
decreased by-33.01%
Maintainers
1
Install size
5.54 MB
Created
Weekly downloads
 

Readme

Source

Artifactory Query Language

To read more about AQL.

Set up connection

In order to be able to connect to the server and send request you need to set up the link to the artifactory. An example for using basic authentication:

  var aql = require('aql'),
      username = "fekete.peter",
      password = "lokaki12",
      auth = "Basic " + new Buffer(username + ":" + password).toString("base64");

  // config object is used by the Request class
  aql.config({
        uri: "http://artifactory.mydomain.com/artifactory/api/search/aql",
        headers: {
           Authorization: auth
        }
     });

Method in the config by default is POST. The default transform function is JSON.parse.

Build and run your query

   var aqlQuery = aql.items.find().include("*").limit(10).sort({$asc: ["repo"]});

   aql.query(aqlQuery).then((data) => {
         console.log(data);
      });

Keywords

FAQs

Last updated on 12 Apr 2019

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