Predicate Domain Specific Language
![codecov](https://codecov.io/gh/ryardley/pdsl/branch/master/graph/badge.svg)
An expressive declarative toolkit for composing predicates in TypeScript or JavaScript
import p from "pdsl";
const isSoftwareCreator = p`{
name: string,
age: > 16,
occupation: "Engineer" | "Designer" | "Project Manager"
}`;
isSoftwareCreator(someone); // true | false
- [x] Intuitive
- [x] Expressive
- [x] Lightweight - under 6k!
- [x] No dependencies
- [x] Small bundle size
- [x] Fast
Documentation
PDSL Documentation