walli-table-driven

The table driven engine which respect walli

Usage no npm install needed!

<script type="module">
  import walliTableDriven from 'https://cdn.skypack.dev/walli-table-driven';
</script>

README

walli-table-driven

Build status Test coverage NPM version NPM Downloads Prettier Conventional Commits

The table driven engine which respect walli

Installation

npm install walli-table-driven
# or use yarn
yarn add walli-table-driven

Usage

import * as w from 'walli'
import { walliTableDrivenQuery } from 'walli-table-driven'

walliTableDrivenQuery(
  {
    task: 'Do something',
    status: 'done'
  },
  [
    [
      {
        task: w.nil,
        status: 'done'
      },
      {
        ok: true
      }
    ]
  ]
) /* => {
  matched: true,
  result: {
    ok: true
  }
} */

API

walliTableDrivenQuery(value: T, rules: TableRules)

Contributing

  • Fork it!
  • Create your new branch:
    git checkout -b feature-new or git checkout -b fix-which-bug
  • Start your magic work now
  • Make sure npm test passes
  • Commit your changes:
    git commit -am 'feat: some description (close #123)' or git commit -am 'fix: some description (fix #123)'
  • Push to the branch: git push
  • Submit a pull request :)

Authors

This library is written and maintained by imcuttle, moyuyc95@gmail.com.

License

MIT - imcuttle 🐟