
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
formation-engine
Advanced tools
formation-engine is a simple validation engine that follows the rule - Rules plus Values equals Results
Rules plus Values equals Results
Formation.js is a simple validation engine that exposes validate(rules: Rules, values: Values): Results function. See type definitions below.
export type Value = boolean | number | string | Object | null
Value is something that we might want to validate, it can be one of following types: boolean, number, string, Object or null. By convention null is used for to denote empty or default values. When input field has nothing in it, or radio button is neither selected nor deselected - it‘s empty.
type Message = string
Message is a string, In real life application message should be an id pointing to i18n/l10n bundle.
type Validation = (value: Value) => ?Message
Validation is a function that accepts Value and returns Message or null (Maybe Message).
type Result {value: Value, messages: Message[]}
Result structure contains value and list of messages, empty list of messages means that result is valid.
export type Rule = {validations: Validation[], defaultValue: Value, required: boolean}
Rule structure contains list of validation functions, default value if any and required flag. Rule can be executed against Value to produce Result.
type Rules = {[string]: Rule}
Rules structure is a map of keys and rules.
type Values = {[string]: Value}
Values structure is a map of keys and values.
type Results = {[string]: Result}
Results structure is a map of keys and results
FAQs
formation-engine is a simple validation engine that follows the rule - Rules plus Values equals Results
We found that formation-engine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.