Skip to content
/ pdsl Public

The expressive declarative toolkit for composing predicates in TypeScript or JavaScript

License

Notifications You must be signed in to change notification settings

ryardley/pdsl

Repository files navigation




Predicate Domain Specific Language

Read the docs!        




Build Status npm bundle size npm codecov

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
  • Intuitive
  • Expressive
  • Lightweight - under 6k!
  • No dependencies
  • Small bundle size
  • Fast

Documentation

PDSL Documentation

About

The expressive declarative toolkit for composing predicates in TypeScript or JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •