Giter VIP home page Giter VIP logo

predicate's Introduction

Build Status NPM

predicate.js - Adding clarity and conciseness to your JS through predicates

predicate.js is a predicate library for JavaScript. predicate doesn't have any dependencies which makes it easy to integrate into new and existing projects.

Docs

landau.github.io/predicate

install

 npm install --save predicate

Tests

npm t

Build for the browser

npm run build.

This will create a UMDified version of is in the dist directory along with a minified version.

predicate's People

Contributors

landau avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

predicate's Issues

Add match predicate?

Or predicate.matches or predicate.like. Takes a regex and returns true if the supplied value matches.

See here for an example.

Predicate breaks create-react-app build process

Predicate is a deep dependency of a React component that I'm using for a web app that I'm building off of create-react-app.

Running the app, everything works great. However, when trying to build the app for deployment, it isn't able to do so since Predicate uses ES6 features and cannot be minified.

This is mainly because the entry point of this module is index.js, which is ES6, instead of the precompiled version in the dist folder. As this is a deep dependency, I cannot just simply import "predicate/dist/predicate" instead of "predicate"β€”this change needs to happen in the module which depends on Predicate.

Should Predicate have its entry-point be changed to the non-ES6 compiled version in the dist folder, or should I ask the maintainer of the module which depends on Predicate to change their imports to the dist folder?

Name tweaks/aliases

Some of the names are a bit ugly/inconsistent IMO (e.g. rgx/RegExp). For the relational predicates, there's lots of prior art for the following (complementing the current eq, lt and gt):

  • le (<=)
  • ge (>=)

I'd also prefer regex and/or regexp instead of rgx (which I don't think I've ever seen anyone use before) or RegExp (why camel case? why ucfirst?).

Happy to create a pull request if interested.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency jade with pug 2.0.0
  • chore(deps): update dependency eslint-config-prettier to v8.10.0
  • chore(deps): update dependency eslint-plugin-prettier to v4.2.1
  • chore(deps): update dependency prettier to v2.8.8
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-jsdoc to v48
  • chore(deps): update dependency eslint-plugin-mocha to v10
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency marked to v11
  • chore(deps): update dependency mocha to v10
  • chore(deps): update dependency prettier to v3
  • πŸ” Create all rate-limited PRs at once πŸ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @landau/eslint-config 4.0.7
  • eslint 8.0.1
  • eslint-config-prettier 8.3.0
  • eslint-plugin-import 2.25.2
  • eslint-plugin-jsdoc 36.1.1
  • eslint-plugin-mocha 9.0.0
  • eslint-plugin-prettier 4.0.0
  • jade 1.11.0
  • lodash 4.17.21
  • marked 4.0.10
  • mocha 9.2.0
  • nyc 15.1.0
  • prettier 2.4.1
  • should 13.2.3
travis
.travis.yml
  • node 10
  • node 12

  • Check this box to trigger a request for Renovate to run again on this repository

Docs don't display correctly in Firefox

This is what I see in Firefox 34.0 with a clean profile on Ubuntu 14.04. Disabling the CSS with View -> Page Style -> No Style "fixes" the problem (i.e. the page is at least readable, though not -- of course -- formatted as intended).

The page displays fine in Chromium.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.