1.0.4 • Published 3 years ago
walli-table-driven v1.0.4
walli-table-driven
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
orgit 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)'
orgit 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 🐟