Search results
68 packages found
A small, but fully featured, library that aims to replace `switch` case logic (mainly to aid with Functional Programming), with a simple declarative API for setting up a predefined map of cases, and choosing a result from it based on input.
A tslint-plugin for rules regarding if/else constructions
Tool that switches provided word from camelCase to underscored_case and back
Utility for mapping values to other values or behaviour, a bit like a match statement
Pattern matching for JavaScript/TypeScript
Small utility module for conditional rendering in React
Library to experiment using template literals for creating a case-matching statement which returns the respective values.
__How to install:__ - `yarn install brunch-feature-switcher` - `npm i brunch-feature-switcher`
- brunch
- plugin
- feature
- switcher
- feature switcher
- code replacer
- conditional
- conditional code replacer
- replace
- replacer
- esprima
- remove
- case
Proper conditional case-when-then statements for JSX
functional switch case alternative
Javascript library for writing, chaining and using conditional statements in a functional way
Switchable Promises, This module is an simple implementation of switch and case style statement on a promise chain.
Match.js is a Javascript library like the 'switch' statement but it works as expression
A functional approach to switches
A simple function, bringing the power of switch statements to expressions.
Switch/Case like React component
## This may negatively impact performance for a react app, as it increases the size of the tree that needs to be diffed/rendered by React, and does not truncate the component tree below it in the same way as a ternary would.