Package Exports
- ccax
- ccax/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ccax) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CCAX
Overview
This project is to utilize when we want to assert some params, it can be string, number or any instance of any class. The motivation behind this is to avoid if-else chains just to validate the parameters. see https://stackoverflow.com/q/73795540/2961427 for more details.
How to Use
TODO: Update this [In Progress]
How to Contribute
- Clone the repository
- Create a branch (
[your-github-username]/[bug-or-task-name]) - Checkout your branch and do the changes, and add the test case.
- Run
npm run lint,npm run formatto clean the code - Run
npm run test, make sure existing and new tests should pass or else the pull request will be rejected. - Commit the changes to your branch.
- Create a pull request for
mainbranch, and tag reviewers.
TODOs:
- Add more assertor for classes and instances
- Create test cases for all the assertors
- Update the README.md