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
- Host: GitHub
- URL: https://github.com/imcuttle/walli-table-driven
- Owner: imcuttle
- License: mit
- Created: 2021-06-04T12:43:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T14:19:45.000Z (over 4 years ago)
- Last Synced: 2025-03-23T02:34:06.770Z (over 1 year ago)
- Language: TypeScript
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: License
Awesome Lists containing this project
README
# walli-table-driven
[](https://travis-ci.com/imcuttle/walli-table-driven)
[](https://codecov.io/github/imcuttle/walli-table-driven?branch=master)
[](https://www.npmjs.com/package/walli-table-driven)
[](https://www.npmjs.com/package/walli-table-driven)
[](https://prettier.io/)
[](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) 🐟