List of functions and variables for
object-crumble
Functions:
Variables:
⎔ Convert any object to an abstract representation of the object structure
abstractObject({ name: "Jane" });
-
rules: Array of
StringAbstractionRule
: a list of rules used to infer the kind of value of each property in the object -
prefix:
string
: path of the object in the enclosing object, or empty if none
an array of CrumbleAbstractedValue
representing each path
kind
pair.
⎔ Detect a a string from a given list of string
-
name:
string
: the keyword to return if the detection happens -
options: Array of
string
: a list of string that would satisfy the detection
the name
keyword or false
See string-abstractor.ts - L19
⎔ Mutates an object applying a list of mutation. We are using currying to provide the list of mutations rules. Only a single mutation is applied to facilitate the studying of the impact.
- rules: Array of
CrumbleFieldMutation
: a list of rules used to infer the kind of value of each property in the object
a CrumbleObject
representing most javascript objects
⎔ Detect an url
- value:
string
: the text to check
the url
keyword or false
Array of CrumbleFieldMutation
Basic mutator rules that can be used out of the box