JSPM

  • Created
  • Published
  • Downloads 3300
  • Score
    100M100P100Q125252F
  • License MIT

A comunica runner that sends an 'init' event from a commandline process.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@comunica/runner-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Comunica Runner CLI

    npm version

    Command line runner module for Comunica actors on the Init bus.

    Builds upon @comunica/runner.

    This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

    Click here if you just want to query with Comunica.

    Learn more about creating a custom init actor.

    Install

    $ yarn add @comunica/runner-cli

    Usage from the command line

    $ comunica-run config.json [args...]

    Usage from an application

    Static:

    #!/usr/bin/env node
    import { runArgsInProcessStatic } from '@comunica/runner-cli';
    runArgsInProcessStatic(require('../engine-default.js'));

    Dynamic:

    #!/usr/bin/env node
    import { runArgsInProcess } from '@comunica/runner-cli';
    runArgsInProcess(`${__dirname}/../`, `${__dirname}/../config/config-default.json`);