Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scim-query-filter-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scim-query-filter-parser

Parser for SCIM Filter Query Strings

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9K
increased by10.15%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 17 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc