Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including ui-predicate-core with all npm packages installed. Try it out:

var uiPredicateCore = require("ui-predicate-core")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ui-predicate-core v0.6.4

Finally a predicate UI component for the Web

ui-predicate-core

Low-level ui-predicate API.

Installation

ui-predicate is available on npm repository.

using yarn:

$ yarn add ui-predicate-core

using npm:

$ npm install ui-predicate-core

You can also directly download sources or use bundles available on jsDelivr.

Usage

ES modules:

import {PredicateCore} from 'ui-predicate-core'

PredicateCore({
  data: [/* */],
  config:{ /* ... */ }
}).then(api => {
  // use api here
  console.log(api);
}, error => {
  // UIPredicateCore will yield a rejected promise if something went wrong at initialization time
  console.error(error);
});

CommonJS:

const {PredicateCore} = require('ui-predicate-core');

PredicateCore({
  data: [/* */],
  config:{ /* ... */ }
}).then(api => {
  // use api here
  console.log(api);
}, error => {
  // UIPredicateCore will yield a rejected promise if something went wrong at initialization time
  console.error(error);
});

Example

Learn more about what ui-predicate can do in the Getting started.

Feel free to try ui-predicate on runkit.

Documentation

API

The detailed generated API documentation is available here.

Looking for older versions API documentation? Links are available here.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free