An open API service indexing awesome lists of open source software.

https://github.com/imcuttle/walli-table-driven

The table driven engine which respect walli
https://github.com/imcuttle/walli-table-driven

Last synced: about 1 year ago
JSON representation

The table driven engine which respect walli

Awesome Lists containing this project

README

          

# walli-table-driven

[![Build status](https://img.shields.io/travis/imcuttle/walli-table-driven/master.svg?style=flat-square)](https://travis-ci.com/imcuttle/walli-table-driven)
[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/walli-table-driven.svg?style=flat-square)](https://codecov.io/github/imcuttle/walli-table-driven?branch=master)
[![NPM version](https://img.shields.io/npm/v/walli-table-driven.svg?style=flat-square)](https://www.npmjs.com/package/walli-table-driven)
[![NPM Downloads](https://img.shields.io/npm/dm/walli-table-driven.svg?style=flat-square&maxAge=43200)](https://www.npmjs.com/package/walli-table-driven)
[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)

> The table driven engine which respect walli

## Installation

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

## Usage

```javascript
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](https://github.com/imcuttle) 🐟