SkillAgentSearch skills...

Pdsl

The expressive declarative toolkit for composing predicates in TypeScript or JavaScript

Install / Use

/learn @ryardley/Pdsl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<br/><br/><br/>

<p align="center"> <img src="pdsl-logo.png" width="200" /> </p> <h1 align="center">Predicate Domain Specific Language</h1> <h4 align="center"> <a href="https://pdsl.site">Read the docs!</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </h4> <br/><br/><br/>

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

Documentation

PDSL Documentation

Related Skills

View on GitHub
GitHub Stars69
CategoryDevelopment
Updated2y ago
Forks2

Languages

TypeScript

Security Score

85/100

Audited on Apr 5, 2024

No findings