basho-eval
    TypeScript icon, indicating that this package has built-in type declarations

    8.0.2 • Public • Published

    Basho Eval

    This is the parser and evaluator used in the basho project. For documentation see https://www.github.com/jeswin/basho.

    It exports the PipelineError class and the evaluate() function.

    Usage looks like this:

    it(`Passes an object to a shell command`, async () => {
      const output = await evaluate(["{ name: 'kai' }", "-e", "echo ${x.name}"]);
      (await toResult(output)).should.deepEqual({
        mustPrint: true,
        result: ["kai"]
      });
    });

    See the tests for more examples.

    Keywords

    none

    Install

    npm i basho-eval

    DownloadsWeekly Downloads

    20

    Version

    8.0.2

    License

    MIT

    Unpacked Size

    152 kB

    Total Files

    125

    Last publish

    Collaborators

    • jeswin