basho-eval
This is the parser and evaluator used in the basho project. For documentation see https://www.github.com/jeswin/basho.
Last updated 3 months ago by jeswin .
MIT · Original npm · Tarball · package.json
$ cnpm install basho-eval 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.1                                ...           latest (3 months ago)

34 Versions

  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
  • 0.0.33                                ...           3 months ago
  • 0.0.32                                ...           3 months ago
  • 0.0.31                                ...           3 months ago
  • 0.0.30                                ...           3 months ago
  • 0.0.29                                ...           3 months ago
  • 0.0.28                                ...           3 months ago
  • 0.0.27                                ...           3 months ago
  • 0.0.26                                ...           4 months ago
  • 0.0.25                                ...           4 months ago
  • 0.0.24                                ...           4 months ago
  • 0.0.23                                ...           5 months ago
  • 0.0.22                                ...           10 months ago
  • 0.0.21                                ...           10 months ago
  • 0.0.20                                ...           10 months ago
  • 0.0.19                                ...           10 months ago
  • 0.0.18                                ...           10 months ago
  • 0.0.17                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 34
Last Day 0
Last Week 0
Last Month 68
Dependencies (2)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |