1.3.0 â€ĸ Published 6 months ago

fluent-criteria v1.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

đŸ“Ĩ Installation

npm i fluent-criteria

🕹ī¸ Playground

https://stackblitz.com/edit/fluent-criteria-example

📖 Usage

import { FluentCriteria } from 'fluent-criteria';
import { IUser, users } from './users.dataset';

const criteria = new FluentCriteria<IUser>();

const usersWithEmail = criteria.search.email.defined.find(users);
console.log('Users with email: ', usersWithEmail);

const usersAsAdmin = criteria.search.role.equal('admin').find(users);
console.log('Users that are admin: ', usersAsAdmin);

const usersWithThumbnailWithPixels =
  criteria.search.profile.thumbnail.pixels.defined.find(users);
console.log('Users with thumbnail and pixels: ', usersWithThumbnailWithPixels);

đŸ“Ļ Packages

đŸ“Ļ CommonJS

const { FluentCriteria } = require('fluent-criteria');

đŸ“Ļ ESM

import { FluentCriteria } from 'fluent-criteria';

đŸ“Ļ TypeScript

import { FluentCriteria } from 'fluent-criteria';

📝 License

This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE- see the LICENSE file for details

1.3.0

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago