2.0.4 • Published 4 years ago

scim-query-filter-parser v2.0.4

Weekly downloads
4,227
License
MIT
Repository
github
Last release
4 years ago

Build Status

tl;dr

import { compileFilter, compileSorter } from "scim-query-filter-parser";

const results = [{ userName: "somebody123" }, { userName: "somebody456" }]
  .filter(compileFilter('userName eq "somebody123"'))
  .sort(compileSorter("userName"));

Description

This implements a parser and compiler for the filtering and sorting features defined in System for Cross-Domain Identity Management (SCIM) Protocol 2.0. It was originally built for use by AuthX;

Methods & Properties

compileFilter(input: string): (data: any) => boolean

Compile a SCIM filter expression into a function.

compileSorter(input: string): (a: any, b: any) => -1 | 0 | 1

Compile a SCIM sort expression into a function.

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

7 years ago

1.0.0

7 years ago