🔭
Eyepiece WORK-IN-PROGRESS !!!
Eyepiece is a simple JavaScript/TypeScript utility library inspired by functional optics that focuses on manipulating nested data within objects/arrays.
It can be used generally but was designed with Hyperapp usage in mind.
// TODO:
Here's an introductory example using TypeScript:
// introductory example thingy
Yeah But Why?
// TODO:
If we want to immutably update an object...
Installation
// TODO:
Guide
// TODO:
API Reference
// TODO:
get()
set()
Since functions within a focus path will get executed many path construction possibilities.
Alternatives
Both shades and Optix are more feature-rich alternatives. However, Eyepiece is intentionally more narrow in scope. Originally, Eyepiece took some inspiration from shades both philosophically and syntactically. Nowadays Eyepiece also borrows from Optix.