pdsl
TypeScript icon, indicating that this package has built-in type declarations

5.2.10 • Public • Published




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

Dependents (0)

Package Sidebar

Install

npm i pdsl

Weekly Downloads

8

Version

5.2.10

License

MIT

Unpacked Size

195 kB

Total Files

53

Last publish

Collaborators

  • ryardley