eyepiece
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.1
    2
    • latest

Version History

Package Sidebar

Install

npm i eyepiece

Weekly Downloads

2

Version

0.4.1

License

MIT

Unpacked Size

6.2 kB

Total Files

6

Last publish

Collaborators

  • icylace