Skip to content

agilehead/basho-eval

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The parser and evaluator for basho

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.8%
  • Other 0.2%